tecton.MaterializationContext

class tecton.MaterializationContext(feature_data_start_time: Optional[pendulum.datetime.DateTime] = None, feature_data_end_time: Optional[pendulum.datetime.DateTime] = None, raw_data_start_time: Optional[pendulum.datetime.DateTime] = None, raw_data_end_time: Optional[pendulum.datetime.DateTime] = None)

MaterializationContext class.

This class contains information about the time ranges used by a Transformation to compute feature values.

Parameters
  • feature_data_start_time – (Optional[pendulum.DateTime): The start of the materialization schedule interval.

  • feature_data_end_time – (Optional[pendulum.DateTime): The end of the materialization schedule interval.

  • raw_data_start_time – (Optional[pendulum.DateTime): The start of the data interval. This data interval is the same as the schedule interval, unless data_lookback is set in the MaterializationConfig, then the interval length is data_lookback.

  • raw_data_end_time – (Optional[pendulum.DateTime): The end of the data interval (same as feature_data_end_time).

Methods

__init__

Initialize self.

build

default

__init__(feature_data_start_time: Optional[pendulum.datetime.DateTime] = None, feature_data_end_time: Optional[pendulum.datetime.DateTime] = None, raw_data_start_time: Optional[pendulum.datetime.DateTime] = None, raw_data_end_time: Optional[pendulum.datetime.DateTime] = None)None

Initialize self. See help(type(self)) for accurate signature.

classmethod build(raw_data_time_limits: pendulum.period.Period, feature_package: tecton_proto.data.feature_package_pb2.FeaturePackage)
classmethod default()