Skip to main content
Version: Beta 🚧

Attribute

Summary​

The Attribute 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​

NameData TypeDescription
descriptionOptional[str]A human-readable description of the feature
tagsOptional[Dict[str, str]]Tags associated with the feature (key-value pairs of user-defined metadata).
namestrName of a column from the transformation output.
dtypeSdkDataTypeDatatype of a column from the transformation output

__init__(...)​

Parameters

  • description (Optional[str]) - A human-readable description of the feature Default: None

  • tags (Optional[Dict[str, str]]) - 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

Was this page helpful?