Skip to content

featurebyte.Target.definition

definition: str

Description

Displays the target definition file of the target. The file is the single source of truth for a target version. The file is generated automatically after a target is declared in the SDK and is stored in the FeatureByte Service.

This file uses the same SDK syntax as the target declaration and provides an explicit outline of the intended operations of the target declaration, including those that are inherited but not explicitly declared by the user. These operations may include feature job settings and cleaning operations inherited from tables metadata.

The target definition file serves as the basis for generating the final logical execution graph, which is then transpiled into platform-specific SQL (e.g. SnowSQL, SparkSQL) for target materialization.

Returns

  • str

Examples

>>> target = catalog.get_target("InvoiceCount_60days")
>>> target_definition = target.definition