QuestionQ151

VerifiedAdvanced Feature Store Concepts

A Machine Learning Engineer needs to build an automated daily pipeline that updates a customer_features table in Unity Catalog. They have implemented a compute_customer_features function that returns a DataFrame with a unique customer_id as the primary key, and they need to ensure the latest feature values are merged into the table each day.

Which code snippet implements this requirement?

Explanation

For a Unity Catalog feature table, FeatureEngineeringClient.write_table(..., mode='merge') merges incoming rows using the table’s primary key, updating the latest feature values and preserving rows not supplied in the incoming DataFrame. This is the documented pattern for regularly scheduled feature-table updates.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!