tdw_catalog.lineage
tdw_catalog.lineage.column_relationship
- class tdw_catalog.lineage.column_relationship.ColumnLineageRelationship(client, **kwargs)[source]
Bases:
EntityBase,_DatasetLineageRelationshipRelationAttributes
- idstr
ColumnLineageRelationship‘s unique id- dataset_lineage_relationship_idstr
The unique ID of the
DatasetLineageRelationshipto which thisColumnLineageRelationshipbelongs- dataset_lineage_relationshipdataset_relationship.DatasetLineageRelationship
The
DatasetLineageRelationshipobject that relates to the dataset_lineage_relationship_id of this model- upstream_columnsList[LineageColumn]
The source columns involved in this relationship
- downstream_columnsList[LineageColumn],
The destination columns involved in this relationship
- user_idstr
The unique
UserID of the user who created thisColumnLineageRelationship- labelstr
The descriptive label for this
ColumnLineageRelationship- descriptionOptional[str] = None
An optional extended description for this
ColumnLineageRelationship- created_atdatetime
The datetime at which this
ColumnLineageRelationshipwas created- updated_atdatetime
The datetime at which this
ColumnLineageRelationshipwas last updated
- classmethod get(client, id: str)[source]
Retrieve a
ColumnLineageRelationshipParameters
- clientCatalog
The
Catalogclient to use to get theColumnLineageRelationship- idstr
The unique ID of the
ColumnLineageRelationship
Returns
- ColumnLineageRelationship
The
ColumnLineageRelationshipassociated with the given ID
Raises
- CatalogInternalException
If call to the
Catalogserver fails- CatalogNotFoundException
If the
ColumnLineageRelationshipwith the supplied ID could not be found- CatalogPermissionDeniedException
If the caller is not allowed to retrieve this
ColumnLineageRelationshipbecause they do not have access to one or both datasets involved, or theOrganizationthis relationship belongs to.
- class tdw_catalog.lineage.column_relationship.LineageColumn(_key: str, _name: str | None, _type: ColumnType)[source]
Bases:
objectA
Datasetcolumn involved in aColumnLineageRelationshipAttributes
- keystr
The column name for this
LineageColumn, within the actualWarehousewhere the data lives- typeColumnType
The data type for this
LineageColumn. Available types can be found inColumnType.- name: Optional[str]
An optional friendly name for this
LineageColumn, which is visually used in place of thekeythroughout theCatalog
tdw_catalog.lineage.dataset_relationship
- class tdw_catalog.lineage.dataset_relationship.DatasetLineageRelationship(client, **kwargs)[source]
Bases:
EntityBaseAttributes
- idstr
DatasetLineageRelationship‘s unique id- organization_idstr
The unique ID of the
Organizationto which thisDatasetLineageRelationshipbelongs- organizationorganization.Organization
The
Organizationobject that relates to the organization_id of this model- upstream_dataset_idstr
The unique ID of the
Dataseton the upstream end of this class:.DatasetLineageRelationship- upstream_datasetUnion[dataset.Dataset, dataset.ConnectedDataset]
The
Datasetobject that relates to the upstream_dataset_id of this model- downstream_dataset_idstr
The unique ID of the
Dataseton the downstream end of this class:.DatasetLineageRelationship- downstream_datasetUnion[dataset.Dataset, dataset.ConnectedDataset]
The
Datasetobject that relates to the downstream_dataset_id of this model- user_idstr
The unique
UserID of the user who created thisDatasetLineageRelationship- labelstr
The descriptive label for this
DatasetLineageRelationship- descriptionOptional[str] = None
An optional extended description for this
DatasetLineageRelationship- created_atdatetime
The datetime at which this
DatasetLineageRelationshipwas created- updated_atdatetime
The datetime at which this
DatasetLineageRelationshipwas last updated
- delete() None[source]
Delete this
DatasetLineageRelationship. AllColumnLineageRelationships within thisDatasetLineageRelationshipwill be deleted as well. ThisDatasetLineageRelationshipobject should not be used after delete() has successfully returnedRaises
- CatalogPermissionDeniedException
If the caller is not allowed to delete this
DatasetLineageRelationship- CatalogNotFoundException
If the
DatasetLineageRelationshipno longer exists- CatalogException
If call to the
Catalogserver fails
- classmethod get(client, id: str)[source]
Retrieve a
DatasetLineageRelationshipParameters
- clientCatalog
The
Catalogclient to use to get theDatasetLineageRelationship- idstr
The unique ID of the
DatasetLineageRelationship
Returns
- DatasetLineageRelationship
The
DatasetLineageRelationshipassociated with the given ID
Raises
- CatalogInternalException
If call to the
Catalogserver fails- CatalogNotFoundException
If the
DatasetLineageRelationshipwith the supplied ID could not be found- CatalogPermissionDeniedException
If the caller is not allowed to retrieve this
DatasetLineageRelationshipbecause they do not have access to one or both datasets involved, or theOrganizationthis relationship belongs to.
- list_column_lineage() List[column_relationship.ColumnLineageRelationship][source]
List all column lineage within this
DatasetLineageRelationshipReturns
- List[ColumnLineageRelationship]
The
ColumnLineageRelationships contained within thisDatasetLineageRelationship
- save() None[source]
Update this
DatasetLineageRelationship, saving any changes to its fieldsRaises
- CatalogPermissionDeniedException
If the caller is not allowed to update this
DatasetLineageRelationship- CatalogNotFoundException
If the
DatasetLineageRelationshipno longer exists- CatalogException
If call to the
Catalogserver fails