QuestionQ140

VerifiedData Processing & Transformations

A data engineer is processing ingested streaming tables and must remove NULL values in the order_datetime column from the raw streaming table orders_raw, storing the results in a new table named orders_valid by using DLT.

Which code snippet should the data engineer use?

Explanation

A streaming-table expectation written as CONSTRAINT ... EXPECT (order_datetime IS NOT NULL) ON VIOLATION DROP ROW discards every record whose order_datetime is NULL before it is written to the target table. Reading with FROM STREAM orders_raw preserves streaming semantics for the raw streaming source.

Learn more

Community Discussion

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