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_view
from 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 | Union[Dict[str, str], NoneType] | 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
]) - A human-readable description of the feature Default:None
tags
(Union
[Dict
[str
,str
],NoneType
]) - Tags associated with the feature (key-value pairs of user-defined metadata). Default:None
name
(str
) - Name of a column from the transformation output. Default:None
dtype
(SdkDataType
) - Datatype of a column from the transformation output Default:None