QuestionQ52

VerifiedDatabricks Machine Learning

A data scientist needs to train a model by using an existing Delta table as a feature table in a workspace with Unity Catalog enabled. Because the Delta table already holds data that is continuously updated, they want to avoid duplicating the data or keeping a separate table synchronized. The table was created with the following code, and customer_id is the unique identifier:

Question Image

Which SQL code statement enables this Delta table to be used as a feature table?

Explanation

An existing Unity Catalog Delta table can serve as a feature table after it has a primary key constraint. Each primary-key column must first be set to NOT NULL; then the primary key constraint can be added. This preserves and uses the continuously updated existing table rather than creating a duplicate.

Learn more

Community Discussion

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