sdk

No menu items for this category

module table_mixin

Mixin class containing Table specific methods

To be used by OpenMetadata class

Global Variables


  • LRU_CACHE_SIZE

OpenMetadata API methods related to Tables.

To be inherited by OpenMetadata


Create or update custom metric. If custom metric name matches an existing one then it will be updated.

Args:

  • <b>custom_metric</b> (CreateCustomMetricRequest): custom metric to be create or updated

Update the profileSample property of a Table, given its FQN.

:param fqn: Table FQN :param profile_sample: new profile sample to set :return: Updated table


Get the latest profile data for a table

Args:

  • <b>fqn</b> (str): table fully qualified name

Returns:

  • <b>Optional[Table]</b>: OM table object

Get profile data

Args:

  • <b>fqn</b> (str): fullyQualifiedName
  • <b>start_ts</b> (int): start timestamp
  • <b>end_ts</b> (int): end timestamp
  • <b>limit</b> (int, optional): limit of record to return. Defaults to 100.
  • <b>after</b> (type, optional): use for API pagination. Defaults to None. profile_type (Union[Type[TableProfile], Type[ColumnProfile]], optional): Profile type to retrieve. Defaults to TableProfile.

Raises:

  • <b>TypeError</b>: if profile_type is not TableProfile or ColumnProfile

Returns:

  • <b>EntityList</b>: EntityList list object

GET call for the /sampleData endpoint for a given Table

Returns a Table entity with TableData (sampleData informed)


PUT profile data for a table

:param table: Table Entity to update :param table_profile: Profile data to add


PUT data model for a table

:param table: Table Entity to update :param data_model: Model to add


PUT sample data for a table

:param table: Table Entity to update :param sample_data: Data to add


POST frequently joined with for a table

:param table: Table Entity to update :param table_join_request: Join data to add


POST usage details for a Table

:param table: Table Entity to update :param table_usage_request: Usage data to add