Skip to main content

Materialized Feature

View as Markdown

MaterializedFeature object​

A materialized feature represents a feature that is continuously computed and stored.

materialized_feature_idstringBetaIDImmutable

Server-assigned unique identifier for the materialized feature.

feature_namestringBeta

The full name of the feature in Unity Catalog.

offline_store_configobjectBetaInput onlyImmutable

Destination for writing feature values to an offline Delta table. The resulting table is returned as table_name.

Show child attributesHide child attributes
catalog_namestringBeta

The Unity Catalog catalog name.

schema_namestringBeta

The Unity Catalog schema name.

table_name_prefixstringBeta

Prefix for Unity Catalog table name. The materialized feature will be stored in a table with this prefix and a generated postfix.

online_store_configobjectBetaImmutable

Destination for writing feature values to an online Lakebase table. The resulting table is returned as table_name.

Show child attributesHide child attributes
catalog_namestringBetaInput only

The Unity Catalog catalog name. This name is also used as the Lakebase logical database name. Quoting is handled by the backend where needed, do not pre-quote it.

schema_namestringBetaInput only

The Unity Catalog schema name. This name is also used as the Lakebase schema name under the database. Quoting is handled by the backend where needed, do not pre-quote it.

table_name_prefixstringBetaInput only

Prefix for Unity Catalog table name. The materialized feature will be stored in a Lakebase table with this prefix and a generated postfix.

online_store_namestringBeta

The name of the target online store.

table_namestringBetaOutput only

The fully qualified Unity Catalog path to the table containing the materialized feature (Delta table or Lakebase table). Output only.

last_materialization_timestringBetaOutput only

The timestamp when the pipeline last ran and updated the materialized feature values. If the pipeline has not run yet, this field will be null.

is_onlinebooleanBetaOutput only

True if this is an online materialized feature. False if it is an offline materialized feature.

cron_schedule_triggerobjectBeta

A cron-based schedule trigger for the materialization pipeline.

Show child attributesHide child attributes
cron_expressionstringBeta

The cron expression defining the schedule (e.g., "0 0 * * *" for daily at midnight). The schedule is interpreted in timezone_id (defaults to UTC). Required when mode is MANUAL (or unset). Left empty when mode is DERIVED, where the service computes it (aligned to UTC) from the features' window timing and fills it in on the response.

table_triggerobjectBeta

A trigger that fires when the upstream source table changes.

streaming_modeobjectBeta

The Structured Streaming trigger mode used for materialization. Real-time mode (RTM) targets sub-second latency for operational workloads; micro-batch mode (MBM) favors cost efficiency for ETL and analytics workloads.

Show child attributesHide child attributes
modestringBeta

The type of streaming mode used by the materialization pipeline.

Values:

  • STREAMING_MODE_TYPE_UNSPECIFIED
  • STREAMING_MODE_TYPE_RTM
  • STREAMING_MODE_TYPE_MBM

Get a materialized feature Beta​

GET /api/2.0/feature-engineering/materialized-features/{materialized_feature_id}

Get a materialized feature.

API scopes: mlflow

Parameters​

materialized_feature_idstringRequiredpath

The ID of the materialized feature.

Response​

Returns the MaterializedFeature object.

List materialized features Beta​

GET /api/2.0/feature-engineering/materialized-features

List materialized features.

API scopes: mlflow

Parameters​

feature_namestringquery

Filter by feature name. If specified, only materialized features materialized from this feature will be returned.

page_tokenstringquery

Pagination token to go to the next page based on a previous query.

page_sizeint32<= 1000query

The maximum number of results to return. Defaults to 100 if not specified. Cannot be greater than 1000.

Default: 100

Response​

Returns a list of MaterializedFeature objects.

Create a materialized feature Beta​

POST /api/2.0/feature-engineering/materialized-features

Create a materialized feature.

API scopes: mlflow

Request body​

The materialized feature to create.

materialized_feature_idstringIDImmutable

Server-assigned unique identifier for the materialized feature.

feature_namestringRequired

The full name of the feature in Unity Catalog.

offline_store_configobjectInput onlyImmutable

Destination for writing feature values to an offline Delta table. The resulting table is returned as table_name.

Show child attributesHide child attributes
catalog_namestringRequired

The Unity Catalog catalog name.

schema_namestringRequired

The Unity Catalog schema name.

table_name_prefixstringRequired

Prefix for Unity Catalog table name. The materialized feature will be stored in a table with this prefix and a generated postfix.

online_store_configobjectImmutable

Destination for writing feature values to an online Lakebase table. The resulting table is returned as table_name.

Show child attributesHide child attributes
catalog_namestringRequiredInput only

The Unity Catalog catalog name. This name is also used as the Lakebase logical database name. Quoting is handled by the backend where needed, do not pre-quote it.

schema_namestringRequiredInput only

The Unity Catalog schema name. This name is also used as the Lakebase schema name under the database. Quoting is handled by the backend where needed, do not pre-quote it.

table_name_prefixstringRequiredInput only

Prefix for Unity Catalog table name. The materialized feature will be stored in a Lakebase table with this prefix and a generated postfix.

online_store_namestringRequired

The name of the target online store.

cron_schedule_triggerobject

A cron-based schedule trigger for the materialization pipeline.

Show child attributesHide child attributes
cron_expressionstring

The cron expression defining the schedule (e.g., "0 0 * * *" for daily at midnight). The schedule is interpreted in timezone_id (defaults to UTC). Required when mode is MANUAL (or unset). Left empty when mode is DERIVED, where the service computes it (aligned to UTC) from the features' window timing and fills it in on the response.

table_triggerobject

A trigger that fires when the upstream source table changes.

streaming_modeobject

The Structured Streaming trigger mode used for materialization. Real-time mode (RTM) targets sub-second latency for operational workloads; micro-batch mode (MBM) favors cost efficiency for ETL and analytics workloads.

Show child attributesHide child attributes
modestring

The type of streaming mode used by the materialization pipeline.

Values:

  • STREAMING_MODE_TYPE_UNSPECIFIED
  • STREAMING_MODE_TYPE_RTM
  • STREAMING_MODE_TYPE_MBM

Response​

Returns the MaterializedFeature object.

Update a materialized feature Beta​

PATCH /api/2.0/feature-engineering/materialized-features/{materialized_feature_id}

Update a materialized feature (pause/resume).

API scopes: mlflow

Parameters​

materialized_feature_idstringRequiredIDImmutablepath

Server-assigned unique identifier for the materialized feature.

update_maskstringRequiredquery

Provide the materialization feature fields which should be updated. Currently, only the pipeline_state field can be updated.

Request body​

The materialized feature to update.

feature_namestringRequired

The full name of the feature in Unity Catalog.

offline_store_configobjectInput onlyImmutable

Destination for writing feature values to an offline Delta table. The resulting table is returned as table_name.

Show child attributesHide child attributes
catalog_namestringRequired

The Unity Catalog catalog name.

schema_namestringRequired

The Unity Catalog schema name.

table_name_prefixstringRequired

Prefix for Unity Catalog table name. The materialized feature will be stored in a table with this prefix and a generated postfix.

online_store_configobjectImmutable

Destination for writing feature values to an online Lakebase table. The resulting table is returned as table_name.

Show child attributesHide child attributes
catalog_namestringRequiredInput only

The Unity Catalog catalog name. This name is also used as the Lakebase logical database name. Quoting is handled by the backend where needed, do not pre-quote it.

schema_namestringRequiredInput only

The Unity Catalog schema name. This name is also used as the Lakebase schema name under the database. Quoting is handled by the backend where needed, do not pre-quote it.

table_name_prefixstringRequiredInput only

Prefix for Unity Catalog table name. The materialized feature will be stored in a Lakebase table with this prefix and a generated postfix.

online_store_namestringRequired

The name of the target online store.

cron_schedule_triggerobject

A cron-based schedule trigger for the materialization pipeline.

Show child attributesHide child attributes
cron_expressionstring

The cron expression defining the schedule (e.g., "0 0 * * *" for daily at midnight). The schedule is interpreted in timezone_id (defaults to UTC). Required when mode is MANUAL (or unset). Left empty when mode is DERIVED, where the service computes it (aligned to UTC) from the features' window timing and fills it in on the response.

table_triggerobject

A trigger that fires when the upstream source table changes.

streaming_modeobject

The Structured Streaming trigger mode used for materialization. Real-time mode (RTM) targets sub-second latency for operational workloads; micro-batch mode (MBM) favors cost efficiency for ETL and analytics workloads.

Show child attributesHide child attributes
modestring

The type of streaming mode used by the materialization pipeline.

Values:

  • STREAMING_MODE_TYPE_UNSPECIFIED
  • STREAMING_MODE_TYPE_RTM
  • STREAMING_MODE_TYPE_MBM

Response​

Returns the MaterializedFeature object.

Delete a materialized feature Beta​

DELETE /api/2.0/feature-engineering/materialized-features/{materialized_feature_id}

Delete a materialized feature.

API scopes: mlflow

Parameters​

materialized_feature_idstringRequiredpath

The ID of the materialized feature to delete.