Skip to main content
Version: 1.1

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

Was this page helpful?