mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-19 07:17:38 +00:00
3.9 KiB
3.9 KiB
DbtModel
This schema defines the DbtModel entity. A DbtModel organizes data modeling details , sql and columns.
$id:https://open-metadata.org/schema/entity/data/dbtmodel.json
Type: object
This schema does not accept additional properties.
Properties
- id
required
- Unique identifier of this model instance.
- $ref: ../../type/basic.json#/definitions/uuid
- name
required
- Name of a model. Expected to be unique within a database.
- $ref: #/definitions/dbtModelName
- displayName
- Display Name that identifies this model. It could be title or label from the source services.
- Type:
string
- fullyQualifiedName
- Fully qualified name of a model in the form
serviceName.databaseName.dbtModelName
. - Type:
string
- Fully qualified name of a model in the form
- description
- Description of a DBT Model.
- Type:
string
- version
- Metadata version of the entity.
- $ref: ../../type/entityHistory.json#/definitions/entityVersion
- updatedAt
- Last update time corresponding to the new version of the entity.
- $ref: ../../type/basic.json#/definitions/dateTime
- updatedBy
- User who made the update.
- Type:
string
- href
- Link to this table resource.
- $ref: ../../type/basic.json#/definitions/href
- dbtNodeType
- dbtCatalogType
- dbtMaterializationType
- columns
required
- Columns in this DBT Model.
- Type:
array
- Items
- $ref: ./table.json#/definitions/column
- owner
- Owner of this DBT Model.
- $ref: ../../type/entityReference.json
- database
- Reference to Database that uses this DBT Model.
- $ref: ../../type/entityReference.json
- viewDefinition
- View Definition in SQL.
- $ref: ../../type/basic.json#/definitions/sqlQuery
- tags
- Tags for this DBT.
- Type:
array
- Items
- $ref: ../../type/tagLabel.json
- followers
- Followers of this table.
- $ref: ../../type/entityReference.json#/definitions/entityReferenceList
- changeDescription
- Change that lead to this version of the entity.
- $ref: ../../type/entityHistory.json#/definitions/changeDescription
Type definitions in this schema
dbtNodeType
- This schema defines the type used for describing different types of Nodes in DBT.
- Type:
string
- The value is restricted to the following:
- "Seed"
- "Model"
dbtCatalogType
- This schema defines the type used for describing different catalog type.
- Type:
string
- The value is restricted to the following:
- "BaseTable"
dbtMaterializationType
- This schema defines the type used for describing different materialization type.
- Type:
string
- The value is restricted to the following:
- "Table"
- "Seed"
dbtModelName
- Local name (not fully qualified name) of a table.
- Type:
string
- The value must match this pattern:
^[^.]*$
- Length: between 1 and 128
fullyQualifiedColumnName
- Fully qualified name of the column that includes
serviceName.databaseName.tableName.columnName[.nestedColumnName]
. When columnName is null for dataType struct fields,field_#
where#
is field index is used. For map dataType, for key the field namekey
is used and for the value fieldvalue
is used. - Type:
string
- Length: between 1 and 256
This document was updated on: Monday, March 7, 2022