QuestionQ117

VerifiedData Transformation, Cleansing, and Quality

A user wants to use DLT expectations to validate that a derived report table includes all records from the source, which are contained in the validation_copy table.

The user tries unsuccessfully to achieve this by adding an expectation to the report table definition.

Question Image

Which approach would enable DLT expectations to validate that all expected records are present in this table?

Explanation

DLT expectations evaluate a Boolean condition for each row and cannot use subqueries that reference another table. A temporary table built by left-joining validation_copy to report retains every expected source record; any missing match has a null report key. An expectation requiring the report key to be non-null therefore detects missing expected records.

Learn more

Community Discussion

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