PyArrowBatchConfig
Summary​
Configuration used to define a batch source using a PyArrow Data Source Function. ThePyArrowBatchConfig class is used to configure a batch source using a user defined Data Source Function.
This class is used as an input to a BatchSource's parameter batch_config. Declaring this configuration
class alone will not register a Data Source. Instead, declare as a part of BatchSource that takes this configuration
class instance as a parameter.
Do not instantiate this class directly. Use :tecton.pyarrow_batch_config instead.
warning
Do not instantiate this class directly. Use
pyarrow_batch_config() instead.
Methods​
__init__(...)​
Instantiates a new PyArrowBatchConfig.Parameters
data_source_function: Union[PyArrowDataSourceFunctionType1, PyArrowDataSourceFunctionType2, PyArrowDataSourceFunctionType3, PyArrowDataSourceFunctionType4]User defined Data Source Function that takes in an optionaltecton.FilterContext, ifsupports_time_filtering=True. Returns apyarrow.RecordBatchReader.data_delay: timedelta = 0:00:00By default, incremental materialization jobs run immediately at the end of the batch schedule period. This parameter configures how long they wait after the end of the period before starting, typically to ensure that all data has landed. For example, if a feature view has abatch_scheduleof 1 day and one of the data source inputs has adata_delayof 1 hour, then incremental materialization jobs will run at01:00UTC.supports_time_filtering: bool = FalseWhen set toTrue, the Data Source Function must take thefilter_contextparameter and implement time filtering logic.supports_time_filteringmust be set toTrueif<data source>.get_dataframe()is called withstart_timeorend_time, or if using time filtering with a Data Source when defining aFeatureViewwhich has time filtering enabled by default. To use a Data Source without time filtering, call.unfiltered()on the Data Source. TheFeatureViewwill call the Data Source Function with thetecton.FilterContext, which has thestart_timeandend_timeset.secrets: Optional[Dict[str,Union[Secret, str]]] = NoneA dictionary of Secret references that will be resolved and provided to the Data Source Function at runtime. During local development and testing, strings may be used instead Secret references.