QuestionQ110

VerifiedData Processing

A data scientist has a Spark DataFrame df containing new customers that they want to add to an existing customer feature table in Unity Catalog. The following parameters are available when writing to the feature table:

  • name — the name of the feature table to write to.
  • df — a Spark DataFrame containing feature data to write to the feature table.
  • mode — the write operation to use when writing to the feature table (for example, merge).
  • primary key — the primary key of the feature table.

Using Databricks Feature Store, with a FeatureEngineeringClient instantiated, what are the minimum parameters required by the write_table function?

Explanation

FeatureEngineeringClient.write_table writes a DataFrame to an existing feature table using the table name and df. The table’s primary key is already defined in the existing feature-table metadata, and mode is optional because the method defaults to merge behavior.

Learn more

Community Discussion

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