Attribute
Summary​
TheAttribute class describes an attribute feature that is applied to a Feature View or Feature Table via features param.Example
from tecton import Attribute, batch_feature_viewfrom tecton.types import String@batch_feature_view(# ...features=[Attribute(name="my_column",dtype=String)Attribute(name="my_other_column",dtype=String,description="my attribute feature description",tags={"tag": "value"})],)def my_fv(data_source):pass
Attributes​
| Name | Data Type | Description |
|---|---|---|
description | Optional[str] | A human-readable description of the feature |
tags | Optional[Dict[str, str]] | Tags associated with the feature (key-value pairs of user-defined metadata). |
name | str | Name of a column from the transformation output. |
dtype | SdkDataType | Datatype of a column from the transformation output |
__init__(...)​
Parameters
description: Optional[str] = NoneA human-readable description of the featuretags: Optional[Dict[str, str]] = NoneTags associated with the feature (key-value pairs of user-defined metadata).name: str = NoneName of a column from the transformation output.dtype: SdkDataType = NoneDatatype of a column from the transformation output