1958 lines
68 KiB
Markdown
Raw Normal View History

# Table Entity
2021-08-01 14:27:44 -07:00
## table
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json
2021-08-01 14:27:44 -07:00
```
Schema corresponding to a table that belongs to a database
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | Yes | Unknown status | No | Forbidden | Allowed | none | [table.json](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### Table entity Type
2021-08-01 14:27:44 -07:00
`object` \([Table entity](table.md)\)
2021-08-01 14:27:44 -07:00
## Table entity Properties
2021-08-04 06:53:40 +00:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [id](table.md#id) | `string` | Optional | cannot be null | [Basic type](../types/basic.md#basic-definitions-uuid) |
| [name](table.md#name) | `string` | Required | cannot be null | [Table entity](table.md#table-properties-name) |
| [description](table.md#description) | `string` | Optional | cannot be null | [Table entity](table.md#table-properties-description) |
| [href](table.md#href) | `string` | Optional | cannot be null | [Basic type](../types/basic.md#basic-definitions-href) |
| [tableType](table.md#tabletype) | `string` | Optional | cannot be null | [Table entity](table.md#table-properties-tabletype) |
| [fullyQualifiedName](table.md#fullyqualifiedname) | `string` | Optional | cannot be null | [Table entity](table.md#table-properties-fullyqualifiedname) |
| [columns](table.md#columns) | `array` | Required | cannot be null | [Table entity](table.md#table-properties-columns) |
| [tableConstraints](table.md#tableconstraints) | `array` | Optional | cannot be null | [Table entity](table.md#table-properties-tableconstraints) |
| [usageSummary](table.md#usagesummary) | `object` | Optional | cannot be null | [Usage Details type](../types/usagedetails.md) |
| [owner](table.md#owner) | `object` | Optional | cannot be null | [Entity Reference type](../types/entityreference.md) |
| [followers](table.md#followers) | `array` | Optional | cannot be null | [Entity Reference type](../types/entityreference.md#entityreference-definitions-entityreferencelist) |
| [database](table.md#database) | `object` | Optional | cannot be null | [Table entity](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md) |
| [tags](table.md#tags) | `array` | Optional | cannot be null | [Table entity](table.md#table-properties-tags) |
| [joins](table.md#joins) | `object` | Optional | cannot be null | [Table entity](table.md#table-definitions-tablejoins) |
| [sampleData](table.md#sampledata) | `object` | Optional | cannot be null | [Table entity](table.md#table-definitions-tabledata) |
### id
2021-08-01 14:27:44 -07:00
Unique id used to identify an entity
`id`
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type](../types/basic.md#basic-definitions-uuid)
2021-08-01 14:27:44 -07:00
#### id Type
2021-08-01 14:27:44 -07:00
`string`
#### id Constraints
2021-08-01 14:27:44 -07:00
**UUID**: the string must be a UUID, according to [RFC 4122](https://tools.ietf.org/html/rfc4122)
2021-08-01 14:27:44 -07:00
### name
2021-08-01 14:27:44 -07:00
Local name \(not fully qualified name\) of the table
2021-08-01 14:27:44 -07:00
`name`
* is required
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-properties-name)
2021-08-01 14:27:44 -07:00
#### name Type
2021-08-01 14:27:44 -07:00
`string`
#### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
2021-08-01 14:27:44 -07:00
### description
2021-08-01 14:27:44 -07:00
Description of the table
`description`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-properties-description)
2021-08-04 06:53:40 +00:00
#### description Type
2021-08-01 14:27:44 -07:00
`string`
### href
2021-08-01 14:27:44 -07:00
Link to this table resource
> Link to the resource
`href`
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type](../types/basic.md#basic-definitions-href)
2021-08-04 06:53:40 +00:00
#### href Type
2021-08-01 14:27:44 -07:00
`string`
#### href Constraints
2021-08-01 14:27:44 -07:00
**URI**: the string must be a URI, according to [RFC 3986](https://tools.ietf.org/html/rfc3986)
2021-08-01 14:27:44 -07:00
### tableType
2021-08-01 14:27:44 -07:00
Type for capturing a column in a table
`tableType`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-properties-tabletype)
2021-08-04 06:53:40 +00:00
#### tableType Type
2021-08-01 14:27:44 -07:00
`string`
#### tableType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"Regular"` | |
| `"External"` | |
| `"View"` | |
| `"SecureView"` | |
| `"MaterializedView"` | |
2021-08-01 14:27:44 -07:00
### fullyQualifiedName
2021-08-01 14:27:44 -07:00
Fully qualified name of the table in the form serviceName.databaseName.tableName
`fullyQualifiedName`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-properties-fullyqualifiedname)
2021-08-04 06:53:40 +00:00
#### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
### columns
2021-08-01 14:27:44 -07:00
Columns in the table
`columns`
* is required
* Type: `object[]` \([Details](../types/basic.md#table-definitions-column)\)
* cannot be null
* defined in: [Table entity](table.md#table-properties-columns)
2021-08-01 14:27:44 -07:00
#### columns Type
2021-08-04 06:53:40 +00:00
`object[]` \([Details](../types/basic.md#table-definitions-column)\)
2021-08-04 06:53:40 +00:00
### tableConstraints
2021-08-01 14:27:44 -07:00
Table constraints
`tableConstraints`
* is optional
* Type: `object[]` \([Details](table.md#table-definitions-tableconstraint)\)
* cannot be null
* defined in: [Table entity](table.md#table-properties-tableconstraints)
2021-08-01 14:27:44 -07:00
#### tableConstraints Type
2021-08-01 14:27:44 -07:00
`object[]` \([Details](table.md#table-definitions-tableconstraint)\)
2021-08-04 06:53:40 +00:00
### usageSummary
2021-08-04 06:53:40 +00:00
Type used to return usage details of an entity
2021-08-01 14:27:44 -07:00
`usageSummary`
* is optional
* Type: `object` \([Type used to return usage details of an entity](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/usagedetails.md)\)
* cannot be null
* defined in: [Usage Details type](../types/usagedetails.md)
2021-08-04 06:53:40 +00:00
#### usageSummary Type
2021-08-01 14:27:44 -07:00
`object` \([Type used to return usage details of an entity](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/usagedetails.md)\)
2021-08-01 14:27:44 -07:00
### owner
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
Entity reference that includes entity ID and entity type
2021-08-01 14:27:44 -07:00
`owner`
* is optional
* Type: `object` \([Entity Reference](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)\)
* cannot be null
* defined in: [Entity Reference type](../types/entityreference.md)
2021-08-04 06:53:40 +00:00
#### owner Type
2021-08-04 06:53:40 +00:00
`object` \([Entity Reference](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)\)
2021-08-01 14:27:44 -07:00
### followers
2021-08-01 14:27:44 -07:00
Followers of this table
`followers`
* is optional
* Type: `object[]` \([Entity Reference](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)\)
* cannot be null
* defined in: [Entity Reference type](../types/entityreference.md#entityreference-definitions-entityreferencelist)
2021-08-01 14:27:44 -07:00
#### followers Type
2021-08-01 14:27:44 -07:00
`object[]` \([Entity Reference](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)\)
2021-08-01 14:27:44 -07:00
### database
2021-08-04 06:53:40 +00:00
Entity reference that includes entity ID and entity type
2021-08-01 14:27:44 -07:00
`database`
* is optional
* Type: `object` \([Entity Reference](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)\)
* cannot be null
* defined in: [Table entity](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)
2021-08-01 14:27:44 -07:00
#### database Type
2021-08-04 06:53:40 +00:00
`object` \([Entity Reference](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/entityreference.md)\)
2021-08-04 06:53:40 +00:00
### tags
2021-08-01 14:27:44 -07:00
Tags for this table
`tags`
* is optional
* Type: `object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
* cannot be null
* defined in: [Table entity](table.md#table-properties-tags)
2021-08-04 06:53:40 +00:00
#### tags Type
2021-08-01 14:27:44 -07:00
`object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
2021-08-04 06:53:40 +00:00
### joins
2021-08-01 14:27:44 -07:00
Details of other tables this table is frequently joined with
`joins`
* is optional
* Type: `object` \([Details](table.md#table-definitions-tablejoins)\)
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tablejoins)
2021-08-01 14:27:44 -07:00
#### joins Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-tablejoins)\)
2021-08-01 14:27:44 -07:00
### sampleData
2021-08-01 14:27:44 -07:00
Information on other tables that this table column is frequently joined with
`sampleData`
* is optional
* Type: `object` \([Details](table.md#table-definitions-tabledata)\)
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tabledata)
2021-08-01 14:27:44 -07:00
#### sampleData Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-tabledata)\)
2021-08-01 14:27:44 -07:00
## Table entity Definitions
2021-08-01 14:27:44 -07:00
### Definitions group tableType
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableType"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
### Definitions group columnDataType
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnDataType"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
### Definitions group columnConstraint
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnConstraint"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
### Definitions group tableConstraint
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableConstraint"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [constraintType](table.md#constrainttype) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-tableconstraint-properties-constrainttype) |
| [columns](table.md#columns-1) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tableconstraint-properties-columns) |
2021-08-01 14:27:44 -07:00
#### constraintType
2021-08-01 14:27:44 -07:00
`constraintType`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tableconstraint-properties-constrainttype)
2021-08-04 06:53:40 +00:00
**constraintType Type**
2021-08-01 14:27:44 -07:00
`string`
**constraintType Constraints**
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"UNIQUE"` | |
| `"PRIMARY_KEY"` | |
| `"FOREIGN_KEY"` | |
2021-08-01 14:27:44 -07:00
#### columns
2021-08-01 14:27:44 -07:00
List of column names corresponding to the constraint
`columns`
* is optional
* Type: `string[]`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tableconstraint-properties-columns)
2021-08-01 14:27:44 -07:00
**columns Type**
2021-08-01 14:27:44 -07:00
`string[]`
### Definitions group columnName
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnName"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
### Definitions group tableName
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableName"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
### Definitions group fullyQualifiedColumnName
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/fullyQualifiedColumnName"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
2021-08-01 14:27:44 -07:00
### Definitions group column
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [name](table.md#name-1) | `string` | Required | cannot be null | [Table entity](table.md#table-definitions-columnname) |
| [columnDataType](table.md#columndatatype) | `string` | Required | cannot be null | [Table entity](table.md#table-Definitions-Columndatatype) |
| [description](table.md#description-1) | `string` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Column-Properties-Description) |
| [fullyQualifiedName](table.md#fullyqualifiedname-1) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-fullyqualifiedcolumnname) |
| [tags](table.md#tags-1) | `array` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Column-Properties-Tags) |
| [columnConstraint](table.md#columnconstraint) | `string` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Columnconstraint) |
| [ordinalPosition](table.md#ordinalposition) | `integer` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Column-Properties-Ordinalposition) |
2021-08-01 14:27:44 -07:00
#### name
2021-08-01 14:27:44 -07:00
Local name \(not fully qualified name\) of the column
2021-08-01 14:27:44 -07:00
`name`
* is required
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnname)
2021-08-04 06:53:40 +00:00
**name Type**
2021-08-01 14:27:44 -07:00
`string`
**name Constraints**
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
2021-08-01 14:27:44 -07:00
#### columnDataType
2021-08-01 14:27:44 -07:00
Type for capturing a column in a table
`columnDataType`
* is required
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Columndatatype)
2021-08-01 14:27:44 -07:00
**columnDataType Type**
2021-08-01 14:27:44 -07:00
`string`
**columnDataType Constraints**
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"NUMBER"` | |
| `"TINYINT"` | |
| `"SMALLINT"` | |
| `"INT"` | |
| `"BIGINT"` | |
| `"FLOAT"` | |
| `"DOUBLE"` | |
| `"DECIMAL"` | |
| `"NUMERIC"` | |
| `"TIMESTAMP"` | |
| `"TIME"` | |
| `"DATE"` | |
| `"DATETIME"` | |
| `"INTERVAL"` | |
| `"STRING"` | |
| `"MEDIUMTEXT"` | |
| `"TEXT"` | |
| `"CHAR"` | |
| `"VARCHAR"` | |
| `"BOOLEAN"` | |
| `"BINARY"` | |
| `"VARBINARY"` | |
| `"ARRAY"` | |
| `"BLOB"` | |
| `"LONGBLOB"` | |
| `"MEDIUMBLOB"` | |
| `"MAP"` | |
| `"STRUCT"` | |
| `"UNION"` | |
| `"SET"` | |
| `"GEOGRAPHY"` | |
| `"ENUM"` | |
| `"JSON"` | |
#### description
2021-08-01 14:27:44 -07:00
Description of the column
`description`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Column-Properties-Description)
2021-08-04 06:53:40 +00:00
**description Type**
2021-08-01 14:27:44 -07:00
`string`
#### fullyQualifiedName
2021-08-01 14:27:44 -07:00
Fully qualified name of the column that includes serviceName.databaseName.tableName.columnName
`fullyQualifiedName`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-fullyqualifiedcolumnname)
2021-08-04 06:53:40 +00:00
**fullyQualifiedName Type**
2021-08-01 14:27:44 -07:00
`string`
**fullyQualifiedName Constraints**
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `256`
**minimum length**: the minimum number of characters for this string is: `1`
#### tags
2021-08-01 14:27:44 -07:00
Tags associated with the column
`tags`
* is optional
* Type: `object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Column-Properties-Tags)
2021-08-01 14:27:44 -07:00
**tags Type**
2021-08-01 14:27:44 -07:00
`object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
2021-08-04 06:53:40 +00:00
#### columnConstraint
2021-08-01 14:27:44 -07:00
Column constraint
`columnConstraint`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Columnconstraint)
2021-08-04 06:53:40 +00:00
**columnConstraint Type**
2021-08-01 14:27:44 -07:00
`string`
**columnConstraint Constraints**
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"NULL"` | |
| `"NOT_NULL"` | |
| `"UNIQUE"` | |
| `"PRIMARY_KEY"` | |
2021-08-01 14:27:44 -07:00
**columnConstraint Default Value**
2021-08-01 14:27:44 -07:00
The default value is:
```javascript
2021-08-01 14:27:44 -07:00
"NULL"
```
#### ordinalPosition
2021-08-01 14:27:44 -07:00
Ordinal position of the column
`ordinalPosition`
* is optional
* Type: `integer`
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Column-Properties-Ordinalposition)
2021-08-01 14:27:44 -07:00
**ordinalPosition Type**
2021-08-01 14:27:44 -07:00
`integer`
### Definitions group columnJoins
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnJoins"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [columnName](table.md#columnname) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-columnname) |
| [joinedWith](table.md#joinedwith) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-columnjoins-properties-joinedwith) |
2021-08-01 14:27:44 -07:00
#### columnName
2021-08-01 14:27:44 -07:00
Local name \(not fully qualified name\) of the column
2021-08-01 14:27:44 -07:00
`columnName`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnname)
2021-08-04 06:53:40 +00:00
**columnName Type**
2021-08-01 14:27:44 -07:00
`string`
**columnName Constraints**
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
2021-08-01 14:27:44 -07:00
#### joinedWith
2021-08-01 14:27:44 -07:00
Fully qualified names of the columns that this column is joined with
`joinedWith`
* is optional
* Type: `object[]` \([Details](table.md#table-definitions-columnjoins-properties-joinedwith-items)\)
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnjoins-properties-joinedwith)
2021-08-04 06:53:40 +00:00
**joinedWith Type**
2021-08-01 14:27:44 -07:00
`object[]` \([Details](table.md#table-definitions-columnjoins-properties-joinedwith-items)\)
2021-08-04 06:53:40 +00:00
### Definitions group tableJoins
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableJoins"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [startDate](table.md#startdate) | `string` | Optional | cannot be null | [Basic type](../types/basic.md#basic-definitions-date) |
| [dayCount](table.md#daycount) | `integer` | Optional | cannot be null | [Table entity](table.md#table-definitions-tablejoins-properties-daycount) |
| [columnJoins](table.md#columnjoins) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tablejoins-properties-columnjoins) |
2021-08-01 14:27:44 -07:00
#### startDate
2021-08-01 14:27:44 -07:00
Date in ISO 8601 format in UTC time. Example - '2018-11-13'
`startDate`
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type](../types/basic.md#basic-definitions-date)
2021-08-04 06:53:40 +00:00
**startDate Type**
2021-08-01 14:27:44 -07:00
`string`
**startDate Constraints**
2021-08-01 14:27:44 -07:00
**date**: the string must be a date string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339)
2021-08-01 14:27:44 -07:00
#### dayCount
2021-08-01 14:27:44 -07:00
`dayCount`
* is optional
* Type: `integer`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tablejoins-properties-daycount)
2021-08-01 14:27:44 -07:00
**dayCount Type**
2021-08-01 14:27:44 -07:00
`integer`
**dayCount Default Value**
2021-08-01 14:27:44 -07:00
The default value is:
```javascript
2021-08-01 14:27:44 -07:00
1
```
#### columnJoins
2021-08-01 14:27:44 -07:00
`columnJoins`
* is optional
* Type: `object[]` \([Details](table.md#table-definitions-columnjoins)\)
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tablejoins-properties-columnjoins)
2021-08-01 14:27:44 -07:00
**columnJoins Type**
2021-08-04 06:53:40 +00:00
`object[]` \([Details](table.md#table-definitions-columnjoins)\)
2021-08-04 06:53:40 +00:00
### Definitions group tableData
2021-08-01 14:27:44 -07:00
Reference this group by using
```javascript
2021-08-04 13:18:14 +05:30
{"$ref":"https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableData"}
2021-08-01 14:27:44 -07:00
```
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [columns](table.md#columns-2) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tabledata-properties-columns) |
| [rows](table.md#rows) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tabledata-properties-rows) |
2021-08-01 14:27:44 -07:00
#### columns
2021-08-04 06:53:40 +00:00
List of local column names \(not fully qualified column names\) of the table
2021-08-01 14:27:44 -07:00
`columns`
* is optional
* Type: `string[]`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tabledata-properties-columns)
2021-08-01 14:27:44 -07:00
**columns Type**
2021-08-01 14:27:44 -07:00
`string[]`
#### rows
2021-08-01 14:27:44 -07:00
Data for a multiple rows of the table
`rows`
* is optional
* Type: `array[]`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tabledata-properties-rows)
2021-08-01 14:27:44 -07:00
**rows Type**
2021-08-04 06:53:40 +00:00
`array[]`
## table-definitions-column-properties-description
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/description
2021-08-01 14:27:44 -07:00
```
Description of the column
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### description Type
2021-08-01 14:27:44 -07:00
`string`
## table-definitions-column-properties-ordinalposition
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/ordinalPosition
2021-08-01 14:27:44 -07:00
```
Ordinal position of the column
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### ordinalPosition Type
2021-08-01 14:27:44 -07:00
`integer`
## table-definitions-column-properties-tags
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/tags
2021-08-01 14:27:44 -07:00
```
Tags associated with the column
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### tags Type
2021-08-01 14:27:44 -07:00
`object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
2021-08-01 14:27:44 -07:00
## table-definitions-column
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json#/properties/columns/items
2021-08-01 14:27:44 -07:00
```
Type for capturing a column in a table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [createTable.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json) |
2021-08-01 14:27:44 -07:00
### items Type
2021-08-01 14:27:44 -07:00
`object` \([Details](../types/basic.md#table-definitions-column)\)
2021-08-01 14:27:44 -07:00
## items Properties
2021-08-01 14:27:44 -07:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [name](table.md#name) | `string` | Required | cannot be null | [Table entity](table.md#table-definitions-columnname) |
| [columnDataType](table.md#columndatatype) | `string` | Required | cannot be null | [Table entity](table.md#table-definitions-columndatatype) |
| [description](table.md#description) | `string` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Column-Properties-Description) |
| [fullyQualifiedName](table.md#fullyqualifiedname) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-fullyqualifiedcolumnname) |
| [tags](table.md#tags) | `array` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Column-Properties-Tags) |
| [columnConstraint](table.md#columnconstraint) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-columnconstraint) |
| [ordinalPosition](table.md#ordinalposition) | `integer` | Optional | cannot be null | [Table entity](table.md#table-Definitions-Column-Properties-Ordinalposition) |
2021-08-01 14:27:44 -07:00
### name
2021-08-01 14:27:44 -07:00
Local name \(not fully qualified name\) of the column
2021-08-01 14:27:44 -07:00
`name`
* is required
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnname)
2021-08-01 14:27:44 -07:00
#### name Type
2021-08-01 14:27:44 -07:00
`string`
#### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
2021-08-01 14:27:44 -07:00
### columnDataType
2021-08-01 14:27:44 -07:00
Type for capturing a column in a table
`columnDataType`
* is required
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columndatatype)
2021-08-04 06:53:40 +00:00
#### columnDataType Type
2021-08-01 14:27:44 -07:00
`string`
#### columnDataType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"NUMBER"` | |
| `"TINYINT"` | |
| `"SMALLINT"` | |
| `"INT"` | |
| `"BIGINT"` | |
| `"FLOAT"` | |
| `"DOUBLE"` | |
| `"DECIMAL"` | |
| `"NUMERIC"` | |
| `"TIMESTAMP"` | |
| `"TIME"` | |
| `"DATE"` | |
| `"DATETIME"` | |
| `"INTERVAL"` | |
| `"STRING"` | |
| `"MEDIUMTEXT"` | |
| `"TEXT"` | |
| `"CHAR"` | |
| `"VARCHAR"` | |
| `"BOOLEAN"` | |
| `"BINARY"` | |
| `"VARBINARY"` | |
| `"ARRAY"` | |
| `"BLOB"` | |
| `"LONGBLOB"` | |
| `"MEDIUMBLOB"` | |
| `"MAP"` | |
| `"STRUCT"` | |
| `"UNION"` | |
| `"SET"` | |
| `"GEOGRAPHY"` | |
| `"ENUM"` | |
| `"JSON"` | |
### description
2021-08-01 14:27:44 -07:00
Description of the column
`description`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Column-Properties-Description)
2021-08-04 06:53:40 +00:00
#### description Type
2021-08-01 14:27:44 -07:00
`string`
### fullyQualifiedName
2021-08-01 14:27:44 -07:00
Fully qualified name of the column that includes serviceName.databaseName.tableName.columnName
`fullyQualifiedName`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-fullyqualifiedcolumnname)
2021-08-04 06:53:40 +00:00
#### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
#### fullyQualifiedName Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `256`
**minimum length**: the minimum number of characters for this string is: `1`
### tags
2021-08-01 14:27:44 -07:00
Tags associated with the column
`tags`
* is optional
* Type: `object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Column-Properties-Tags)
2021-08-01 14:27:44 -07:00
#### tags Type
2021-08-04 06:53:40 +00:00
`object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
2021-08-04 06:53:40 +00:00
### columnConstraint
2021-08-01 14:27:44 -07:00
Column constraint
`columnConstraint`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnconstraint)
2021-08-04 06:53:40 +00:00
#### columnConstraint Type
2021-08-01 14:27:44 -07:00
`string`
#### columnConstraint Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"NULL"` | |
| `"NOT_NULL"` | |
| `"UNIQUE"` | |
| `"PRIMARY_KEY"` | |
2021-08-01 14:27:44 -07:00
#### columnConstraint Default Value
2021-08-01 14:27:44 -07:00
The default value is:
```javascript
2021-08-01 14:27:44 -07:00
"NULL"
```
### ordinalPosition
2021-08-01 14:27:44 -07:00
Ordinal position of the column
`ordinalPosition`
* is optional
* Type: `integer`
* cannot be null
* defined in: [Table entity](table.md#table-Definitions-Column-Properties-Ordinalposition)
2021-08-01 14:27:44 -07:00
#### ordinalPosition Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`integer`
## table-definitions-columnconstraint
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/columnConstraint
2021-08-01 14:27:44 -07:00
```
Column constraint
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### columnConstraint Type
2021-08-01 14:27:44 -07:00
`string`
### columnConstraint Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"NULL"` | |
| `"NOT_NULL"` | |
| `"UNIQUE"` | |
| `"PRIMARY_KEY"` | |
2021-08-01 14:27:44 -07:00
### columnConstraint Default Value
2021-08-01 14:27:44 -07:00
The default value is:
```javascript
2021-08-01 14:27:44 -07:00
"NULL"
```
## table-definitions-columndatatype
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/columnDataType
2021-08-01 14:27:44 -07:00
```
Type for capturing a column in a table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### columnDataType Type
2021-08-01 14:27:44 -07:00
`string`
### columnDataType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"NUMBER"` | |
| `"TINYINT"` | |
| `"SMALLINT"` | |
| `"INT"` | |
| `"BIGINT"` | |
| `"FLOAT"` | |
| `"DOUBLE"` | |
| `"DECIMAL"` | |
| `"NUMERIC"` | |
| `"TIMESTAMP"` | |
| `"TIME"` | |
| `"DATE"` | |
| `"DATETIME"` | |
| `"INTERVAL"` | |
| `"STRING"` | |
| `"MEDIUMTEXT"` | |
| `"TEXT"` | |
| `"CHAR"` | |
| `"VARCHAR"` | |
| `"BOOLEAN"` | |
| `"BINARY"` | |
| `"VARBINARY"` | |
| `"ARRAY"` | |
| `"BLOB"` | |
| `"LONGBLOB"` | |
| `"MEDIUMBLOB"` | |
| `"MAP"` | |
| `"STRUCT"` | |
| `"UNION"` | |
| `"SET"` | |
| `"GEOGRAPHY"` | |
| `"ENUM"` | |
| `"JSON"` | |
## table-definitions-columnjoins-properties-joinedwith-items-properties-joincount
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnJoins/properties/joinedWith/items/properties/joinCount
2021-08-04 06:53:40 +00:00
```
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### joinCount Type
2021-08-04 06:53:40 +00:00
`integer`
2021-08-01 14:27:44 -07:00
## table-definitions-columnjoins-properties-joinedwith-items
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnJoins/properties/joinedWith/items
2021-08-01 14:27:44 -07:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### items Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-columnjoins-properties-joinedwith-items)\)
2021-08-01 14:27:44 -07:00
## items Properties
2021-08-01 14:27:44 -07:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [fullyQualifiedName](table.md#fullyqualifiedname) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-fullyqualifiedcolumnname) |
| [joinCount](table.md#joincount) | `integer` | Optional | cannot be null | [Table entity](table.md#table-definitions-columnjoins-properties-joinedwith-items-properties-joincount) |
2021-08-04 06:53:40 +00:00
### fullyQualifiedName
2021-08-01 14:27:44 -07:00
Fully qualified name of the column that includes serviceName.databaseName.tableName.columnName
`fullyQualifiedName`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-fullyqualifiedcolumnname)
2021-08-04 06:53:40 +00:00
#### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
#### fullyQualifiedName Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `256`
**minimum length**: the minimum number of characters for this string is: `1`
### joinCount
2021-08-01 14:27:44 -07:00
`joinCount`
* is optional
* Type: `integer`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnjoins-properties-joinedwith-items-properties-joincount)
2021-08-01 14:27:44 -07:00
#### joinCount Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`integer`
2021-08-01 14:27:44 -07:00
## table-definitions-columnjoins-properties-joinedwith
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/columnJoins/properties/joinedWith
2021-08-01 14:27:44 -07:00
```
Fully qualified names of the columns that this column is joined with
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
### joinedWith Type
2021-08-01 14:27:44 -07:00
`object[]` \([Details](table.md#table-definitions-columnjoins-properties-joinedwith-items)\)
2021-08-01 14:27:44 -07:00
## table-definitions-columnjoins
2021-08-01 14:27:44 -07:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableJoins/properties/columnJoins/items
2021-08-01 14:27:44 -07:00
```
Information on other tables that this table column is frequently joined with
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### items Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-columnjoins)\)
2021-08-01 14:27:44 -07:00
## items Properties
2021-08-01 14:27:44 -07:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [columnName](table.md#columnname) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-columnname) |
| [joinedWith](table.md#joinedwith) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-columnjoins-properties-joinedwith) |
2021-08-01 14:27:44 -07:00
### columnName
2021-08-01 14:27:44 -07:00
Local name \(not fully qualified name\) of the column
2021-08-01 14:27:44 -07:00
`columnName`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnname)
2021-08-04 06:53:40 +00:00
#### columnName Type
2021-08-01 14:27:44 -07:00
`string`
#### columnName Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
2021-08-01 14:27:44 -07:00
### joinedWith
2021-08-01 14:27:44 -07:00
Fully qualified names of the columns that this column is joined with
`joinedWith`
* is optional
* Type: `object[]` \([Details](table.md#table-definitions-columnjoins-properties-joinedwith-items)\)
* cannot be null
* defined in: [Table entity](table.md#table-definitions-columnjoins-properties-joinedwith)
2021-08-01 14:27:44 -07:00
#### joinedWith Type
2021-08-01 14:27:44 -07:00
`object[]` \([Details](table.md#table-definitions-columnjoins-properties-joinedwith-items)\)
2021-08-04 06:53:40 +00:00
## table-definitions-columnname
2021-08-04 06:53:40 +00:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/name
2021-08-01 14:27:44 -07:00
```
Local name \(not fully qualified name\) of the column
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### name Type
2021-08-01 14:27:44 -07:00
`string`
### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
2021-08-01 14:27:44 -07:00
## table-definitions-fullyqualifiedcolumnname
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/column/properties/fullyQualifiedName
2021-08-01 14:27:44 -07:00
```
Fully qualified name of the column that includes serviceName.databaseName.tableName.columnName
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
### fullyQualifiedName Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `256`
**minimum length**: the minimum number of characters for this string is: `1`
## table-definitions-tableconstraint-properties-columns-items
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableConstraint/properties/columns/items
2021-08-01 14:27:44 -07:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### items Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`string`
## table-definitions-tableconstraint-properties-columns
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableConstraint/properties/columns
2021-08-01 14:27:44 -07:00
```
List of column names corresponding to the constraint
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### columns Type
2021-08-01 14:27:44 -07:00
`string[]`
## table-definitions-tableconstraint-properties-constrainttype
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableConstraint/properties/constraintType
2021-08-01 14:27:44 -07:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### constraintType Type
2021-08-01 14:27:44 -07:00
`string`
### constraintType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"UNIQUE"` | |
| `"PRIMARY_KEY"` | |
| `"FOREIGN_KEY"` | |
## table-definitions-tableconstraint
2021-08-01 14:27:44 -07:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json#/properties/tableConstraints/items
2021-08-01 14:27:44 -07:00
```
Table constraint
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [createTable.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json) |
2021-08-01 14:27:44 -07:00
### items Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-tableconstraint)\)
2021-08-01 14:27:44 -07:00
## items Properties
2021-08-01 14:27:44 -07:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [constraintType](table.md#constrainttype) | `string` | Optional | cannot be null | [Table entity](table.md#table-definitions-tableconstraint-properties-constrainttype) |
| [columns](table.md#columns) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tableconstraint-properties-columns) |
2021-08-01 14:27:44 -07:00
### constraintType
2021-08-01 14:27:44 -07:00
`constraintType`
* is optional
* Type: `string`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tableconstraint-properties-constrainttype)
2021-08-04 06:53:40 +00:00
#### constraintType Type
2021-08-01 14:27:44 -07:00
`string`
#### constraintType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"UNIQUE"` | |
| `"PRIMARY_KEY"` | |
| `"FOREIGN_KEY"` | |
2021-08-01 14:27:44 -07:00
### columns
2021-08-01 14:27:44 -07:00
List of column names corresponding to the constraint
`columns`
* is optional
* Type: `string[]`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tableconstraint-properties-columns)
2021-08-01 14:27:44 -07:00
#### columns Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`string[]`
## table-definitions-tabledata-properties-columns
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableData/properties/columns
2021-08-01 14:27:44 -07:00
```
List of local column names \(not fully qualified column names\) of the table
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### columns Type
2021-08-01 14:27:44 -07:00
2021-08-04 06:53:40 +00:00
`string[]`
2021-08-01 14:27:44 -07:00
## table-definitions-tabledata-properties-rows-items
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableData/properties/rows/items
2021-08-01 14:27:44 -07:00
```
2021-08-04 06:53:40 +00:00
Data for a single row of the table with in the same order as columns fields
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### items Type
2021-08-01 14:27:44 -07:00
`array`
## table-definitions-tabledata-properties-rows
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableData/properties/rows
2021-08-01 14:27:44 -07:00
```
Data for a multiple rows of the table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### rows Type
2021-08-01 14:27:44 -07:00
`array[]`
## table-definitions-tabledata
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/sampleData
2021-08-01 14:27:44 -07:00
```
Information on other tables that this table column is frequently joined with
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### sampleData Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-tabledata)\)
2021-08-01 14:27:44 -07:00
## sampleData Properties
2021-08-01 14:27:44 -07:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [columns](table.md#columns) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tabledata-properties-columns) |
| [rows](table.md#rows) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tabledata-properties-rows) |
2021-08-01 14:27:44 -07:00
### columns
2021-08-04 06:53:40 +00:00
List of local column names \(not fully qualified column names\) of the table
2021-08-01 14:27:44 -07:00
`columns`
* is optional
* Type: `string[]`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tabledata-properties-columns)
2021-08-04 06:53:40 +00:00
#### columns Type
2021-08-01 14:27:44 -07:00
`string[]`
### rows
2021-08-01 14:27:44 -07:00
Data for a multiple rows of the table
`rows`
* is optional
* Type: `array[]`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tabledata-properties-rows)
2021-08-01 14:27:44 -07:00
#### rows Type
2021-08-04 06:53:40 +00:00
`array[]`
2021-08-01 14:27:44 -07:00
## table-definitions-tablejoins-properties-columnjoins
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableJoins/properties/columnJoins
2021-08-01 14:27:44 -07:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### columnJoins Type
2021-08-01 14:27:44 -07:00
`object[]` \([Details](table.md#table-definitions-columnjoins)\)
2021-08-01 14:27:44 -07:00
## table-definitions-tablejoins-properties-daycount
2021-08-01 14:27:44 -07:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableJoins/properties/dayCount
2021-08-01 14:27:44 -07:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### dayCount Type
2021-08-01 14:27:44 -07:00
`integer`
### dayCount Default Value
2021-08-01 14:27:44 -07:00
The default value is:
```javascript
2021-08-01 14:27:44 -07:00
1
```
## table-definitions-tablejoins
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/joins
2021-08-01 14:27:44 -07:00
```
Details of other tables this table is frequently joined with
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | No | Forbidden | Forbidden | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### joins Type
2021-08-01 14:27:44 -07:00
`object` \([Details](table.md#table-definitions-tablejoins)\)
2021-08-01 14:27:44 -07:00
## joins Properties
2021-08-01 14:27:44 -07:00
| Property | Type | Required | Nullable | Defined by |
| :--- | :--- | :--- | :--- | :--- |
| [startDate](table.md#startdate) | `string` | Optional | cannot be null | [Basic type](../types/basic.md#basic-definitions-date) |
| [dayCount](table.md#daycount) | `integer` | Optional | cannot be null | [Table entity](table.md#table-definitions-tablejoins-properties-daycount) |
| [columnJoins](table.md#columnjoins) | `array` | Optional | cannot be null | [Table entity](table.md#table-definitions-tablejoins-properties-columnjoins) |
2021-08-01 14:27:44 -07:00
### startDate
2021-08-01 14:27:44 -07:00
Date in ISO 8601 format in UTC time. Example - '2018-11-13'
`startDate`
* is optional
* Type: `string`
* cannot be null
* defined in: [Basic type](../types/basic.md#basic-definitions-date)
2021-08-01 14:27:44 -07:00
#### startDate Type
2021-08-01 14:27:44 -07:00
`string`
#### startDate Constraints
2021-08-01 14:27:44 -07:00
**date**: the string must be a date string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339)
2021-08-01 14:27:44 -07:00
### dayCount
2021-08-01 14:27:44 -07:00
`dayCount`
* is optional
* Type: `integer`
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tablejoins-properties-daycount)
2021-08-04 06:53:40 +00:00
#### dayCount Type
2021-08-01 14:27:44 -07:00
`integer`
#### dayCount Default Value
2021-08-01 14:27:44 -07:00
The default value is:
```javascript
2021-08-01 14:27:44 -07:00
1
```
### columnJoins
2021-08-01 14:27:44 -07:00
`columnJoins`
* is optional
* Type: `object[]` \([Details](table.md#table-definitions-columnjoins)\)
* cannot be null
* defined in: [Table entity](table.md#table-definitions-tablejoins-properties-columnjoins)
2021-08-01 14:27:44 -07:00
#### columnJoins Type
2021-08-04 06:53:40 +00:00
`object[]` \([Details](table.md#table-definitions-columnjoins)\)
2021-08-01 14:27:44 -07:00
## table-definitions-tablename
2021-08-04 06:53:40 +00:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json#/properties/name
2021-08-01 14:27:44 -07:00
```
Local name \(not fully qualified name\) of the table
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [createTable.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json) |
2021-08-01 14:27:44 -07:00
### name Type
2021-08-01 14:27:44 -07:00
`string`
### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
## table-definitions-tabletype-javaenums-0
2021-08-04 06:53:40 +00:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableType/javaEnums/0
2021-08-04 06:53:40 +00:00
```
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### 0 Type
2021-08-04 06:53:40 +00:00
unknown
## table-definitions-tabletype-javaenums-1
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableType/javaEnums/1
2021-08-04 06:53:40 +00:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-04 06:53:40 +00:00
### 1 Type
2021-08-04 06:53:40 +00:00
unknown
## table-definitions-tabletype-javaenums-2
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableType/javaEnums/2
2021-08-04 06:53:40 +00:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-04 06:53:40 +00:00
### 2 Type
2021-08-04 06:53:40 +00:00
unknown
## table-definitions-tabletype-javaenums-3
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableType/javaEnums/3
2021-08-04 06:53:40 +00:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-04 06:53:40 +00:00
### 3 Type
2021-08-04 06:53:40 +00:00
unknown
## table-definitions-tabletype-javaenums-4
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions/tableType/javaEnums/4
2021-08-04 06:53:40 +00:00
```
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-04 06:53:40 +00:00
### 4 Type
2021-08-04 06:53:40 +00:00
unknown
## table-definitions-tabletype
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json#/properties/tableType
2021-08-01 14:27:44 -07:00
```
Type for capturing a column in a table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [createTable.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/api/data/createTable.json) |
2021-08-01 14:27:44 -07:00
### tableType Type
2021-08-01 14:27:44 -07:00
`string`
### tableType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"Regular"` | |
| `"External"` | |
| `"View"` | |
| `"SecureView"` | |
| `"MaterializedView"` | |
## table-definitions
2021-08-04 06:53:40 +00:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/definitions
2021-08-04 06:53:40 +00:00
```
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### definitions Type
2021-08-01 14:27:44 -07:00
unknown
## table-properties-columns
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/columns
2021-08-01 14:27:44 -07:00
```
Columns in the table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
### columns Type
2021-08-01 14:27:44 -07:00
`object[]` \([Details](../types/basic.md#table-definitions-column)\)
2021-08-01 14:27:44 -07:00
## table-properties-description
2021-08-01 14:27:44 -07:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/description
2021-08-01 14:27:44 -07:00
```
Description of the table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### description Type
2021-08-01 14:27:44 -07:00
`string`
## table-properties-fullyqualifiedname
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/fullyQualifiedName
2021-08-01 14:27:44 -07:00
```
Fully qualified name of the table in the form serviceName.databaseName.tableName
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### fullyQualifiedName Type
2021-08-01 14:27:44 -07:00
`string`
## table-properties-name
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/name
2021-08-01 14:27:44 -07:00
```
Local name \(not fully qualified name\) of the table
2021-08-01 14:27:44 -07:00
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### name Type
2021-08-01 14:27:44 -07:00
`string`
### name Constraints
2021-08-01 14:27:44 -07:00
**maximum length**: the maximum number of characters for this string is: `64`
**minimum length**: the minimum number of characters for this string is: `1`
**pattern**: the string must match the following regular expression:
2021-08-01 14:27:44 -07:00
```text
2021-08-01 14:27:44 -07:00
^[^.]*$
```
[try pattern](https://regexr.com/?expression=%5E%5B%5E.%5D*%24)
## table-properties-tableconstraints
2021-08-01 14:27:44 -07:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/tableConstraints
2021-08-01 14:27:44 -07:00
```
Table constraints
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
### tableConstraints Type
2021-08-01 14:27:44 -07:00
`object[]` \([Details](table.md#table-definitions-tableconstraint)\)
2021-08-01 14:27:44 -07:00
## table-properties-tabletype
2021-08-01 14:27:44 -07:00
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/tableType
2021-08-01 14:27:44 -07:00
```
Type for capturing a column in a table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
2021-08-01 14:27:44 -07:00
### tableType Type
2021-08-01 14:27:44 -07:00
`string`
### tableType Constraints
2021-08-01 14:27:44 -07:00
**enum**: the value of this property must be equal to one of the following values:
| Value | Explanation |
| :--- | :--- |
| `"Regular"` | |
| `"External"` | |
| `"View"` | |
| `"SecureView"` | |
| `"MaterializedView"` | |
2021-08-04 06:53:40 +00:00
## table-properties-tags
```text
2021-08-04 13:18:14 +05:30
https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json#/properties/tags
2021-08-01 14:27:44 -07:00
```
Tags for this table
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [table.json\*](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/https:/github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json) |
### tags Type
2021-08-01 14:27:44 -07:00
`object[]` \([Tag Label](https://github.com/open-metadata/OpenMetadata/tree/88ab3784a5a9e2cfcf56bbb144522498eb33184c/docs/openmetadata-apis/schemas/entities/taglabel.md)\)
2021-08-01 14:27:44 -07:00