tecton.interactive.BatchDataSource¶
-
class
tecton.interactive.BatchDataSource¶ BatchDataSource abstracts batch data sources.
BatchFeatureViews and BatchWindowAggregateFeatureViews ingest data from BatchDataSources.
Methods
Returns this data source’s data as a Tecton DataFrame.
Displays a human readable summary of this data source.
-
get_dataframe(start_time=None, end_time=None, *, apply_translator=True)¶ Returns this data source’s data as a Tecton DataFrame.
- Parameters
start_time (
Union[DateTime,datetime,None]) – The interval start time from when we want to retrieve source data. If no timezone is specified, will default to using UTC. Can only be defined ifapply_translatoris True.end_time (
Union[DateTime,datetime,None]) – The interval end time until when we want to retrieve source data. If no timezone is specified, will default to using UTC. Can only be defined ifapply_translatoris True.apply_translator (
bool) – If True, the transformation specified byraw_batch_translatorwill be applied to the dataframe for the data source.apply_translatoris not applicable to batch sources configured withspark_batch_configbecause it does not have apost_processor.
- Returns
A Tecton DataFrame containing the data source’s raw or translated source data.
- Raises
TectonValidationError – If
apply_translatoris False, butstart_timeorend_timefilters are passed in.
-
summary()¶ Displays a human readable summary of this data source.
Attributes
columnsReturns streaming DS columns if it’s present.
created_atReturns the creation date of this Tecton Object.
defined_inReturns filename where this Tecton Object has been declared.
descriptionThe description of this Tecton Object, set by user.
familyDeprecated.
idReturns a unique ID for the data source.
is_streamingWhether or not it’s a StreamDataSource.
nameThe name of this Tecton Object.
ownerThe owner of this Tecton Object (typically the email of the primary maintainer.)
tagsTags associated with this Tecton Object (key-value pairs of arbitrary metadata set by user.)
workspaceReturns the workspace this Tecton Object was created in.
-