TableDataSource
laktory.models.datasources.TableDataSource
¤
Bases: BaseDataSource
Data source using a data warehouse data table, generally used in the context of a data pipeline. Currently only supported by Spark dataframes.
ATTRIBUTE | DESCRIPTION |
---|---|
catalog_name |
Name of the catalog of the source table |
schema_name |
Name of the schema of the source table |
table_name |
Name of the source table |
Examples:
from laktory import models
source = models.TableDataSource(
catalog_name="dev",
schema_name="finance",
table_name="brz_stock_prices",
selects=["symbol", "open", "close"],
filter="symbol='AAPL'",
as_stream=True,
)
# df = source.read(spark)
ATTRIBUTE | DESCRIPTION |
---|---|
full_name |
Table full name {catalog_name}.{schema_name}.{table_name}
TYPE:
|