QuestionQ143

Advanced Feature Store Concepts

A data scientist created a Python function, compute_features, that returns a Spark DataFrame with this schema:

Question Image

The resulting DataFrame is assigned to the features_df variable. The data scientist needs to create a Feature Store table using features_df.

Which of the following code blocks can be used to create and populate the Feature Store table with the Feature Store Client fs?

  • A
  • B
  • C features_df.write.mode("fs").path("new_table")
  • D
  • E features_df.write.mode("feature").path("new_table")
Explanation

A Feature Store Client table can be created and populated by calling create_table with the table name, the primary-key column, and df=features_df. The df argument supplies the Spark DataFrame used for the feature-table schema and persists its rows; customer_id is the appropriate primary key. Databricks Feature Store Python API reference

Learn more

Community Discussion

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