mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-09 17:12:02 +00:00
32 KiB
32 KiB
Table entity
Schema corresponding to a table that belongs to a database
Type: object
$schema: http://json-schema.org/draft-07/schema#
Comment
version 0.1.81
Properties
- id
- Unique identifier that identifies this table instance
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/id
- $ref: ../../type/basic.json#/definitions/uuid
- name
required
- Name of the table. Expected to be unique with in a database
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/name
- $ref: #/definitions/tableName
- description
- Description of the table
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/description
- href
- tableType
- fullyQualifiedName
- Fully qualified name of the table in the form serviceName.databaseName.tableName
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/fullyQualifiedName
- columns
required
- Columns in the table
- Type:
array
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/columns
- tableConstraints
- usageSummary
- Latest usage information for this table
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/usageSummary
- $ref: ../../type/usageDetails.json
- owner
- followers
- database
- Reference to Database that contains this table
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/database
- $ref: ../../type/entityReference.json
- tags
- Tags for this table
- Type:
array
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/tags
- joins
- Details of other tables this table is frequently joined with
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/properties/joins
- $ref: #/definitions/tableJoins
- sampleData
definitions
tableType
- Type for capturing a column in a table
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableType
- The value is restricted to the following:
- "Regular"
- "External"
- "View"
- "SecureView"
- "MaterializedView"
columnDataType
- Type for capturing a column in a table
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/columnDataType
- The value is restricted to the following:
- "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"
columnConstraint
- Column constraint
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/columnConstraint
- The value is restricted to the following:
- "NULL"
- "NOT_NULL"
- "UNIQUE"
- "PRIMARY_KEY"
- Default: "NULL"
tableConstraint
- Table constraint
- Type:
object
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableConstraint
- Properties
- constraintType
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableConstraint/properties/constraintType
- The value is restricted to the following:
- "UNIQUE"
- "PRIMARY_KEY"
- "FOREIGN_KEY"
- Type:
- columns
- List of column names corresponding to the constraint
- Type:
array
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableConstraint/properties/columns
- constraintType
columnName
- Local name (not fully qualified name) of the column
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/columnName
- The value must match this pattern:
^[^.]*$
- Length: between 1 and 64
tableName
- Local name (not fully qualified name) of the table
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableName
- The value must match this pattern:
^[^.]*$
- Length: between 1 and 64
fullyQualifiedColumnName
- Fully qualified name of the column that includes serviceName.databaseName.tableName.columnName
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/fullyQualifiedColumnName
- Length: between 1 and 256
column
- Type for capturing a column in a table
- Type:
object
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/column
- Properties
- name
required
- columnDataType
required
- Data type of the column (int, date etc.)
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/column/properties/columnDataType
- $ref: #/definitions/columnDataType
- description
- Description of the column
- Type:
string
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/column/properties/description
- fullyQualifiedName
- tags
- Tags associated with the column
- Type:
array
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/column/properties/tags
- columnConstraint
- ordinalPosition
- Ordinal position of the column
- Type:
integer
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/column/properties/ordinalPosition
- name
columnJoins
- Information on other tables that this table column is frequently joined with
- Type:
object
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/columnJoins
- This schema does not accept additional properties.
- Properties
- columnName
- joinedWith
- Fully qualified names of the columns that this column is joined with
- Type:
array
- path: #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
- Type:
object
- path: #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
- fullyQualifiedName
- joinCount
tableJoins
- Type:
object
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableJoins
- This schema does not accept additional properties.
- Properties
- startDate
- Date can be only from today going back to last 29 days
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableJoins/properties/startDate
- $ref: ../../type/basic.json#/definitions/date
- dayCount
- columnJoins
- startDate
tableData
- Information on other tables that this table column is frequently joined with
- Type:
object
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableData
- This schema does not accept additional properties.
- Properties
- columns
- List of local column names (not fully qualified column names) of the table
- Type:
array
- path: #https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/resources/json/schema/entity/data/table.json/definitions/tableData/properties/columns
- rows
- Data for a multiple rows of the table
- Type:
array
- path: #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
- Data for a single row of the table with in the same order as columns fields
- Type:
array
- path: #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
- columns
Generated with json-schema-md-doc Mon Aug 09 2021 11:07:08 GMT-0700 (Pacific Daylight Time)