Skip to content

featurebyte.DataSource.get_source_table

get_source_table(
table_name: str,
database_name: Union[str, NoneType]=None,
schema_name: Union[str, NoneType]=None
) -> SourceTable

Description

Gets a SourceTable object by specifying the table name, along with details about the database and database schema to which the table belongs.

Parameters

  • table_name: str
    Name of table.

  • database_name: Union[str, NoneType]
    Name of database.

  • schema_name: Union[str, NoneType]
    Name of schema.

Returns

  • SourceTable
    SourceTable object.

Examples

>>> data_source = fb.FeatureStore.get("playground").get_data_source()
>>> source_table = data_source.get_source_table(
...     table_name="groceryinvoice",
...     database_name="spark_catalog",
...     schema_name="doctest_grocery",
... )
>>> source_table.columns
['GroceryInvoiceGuid', 'GroceryCustomerGuid', 'Timestamp', 'record_available_at', 'Amount']

See Also