QuestionQ18

VerifiedDevelopment and Ingestion

A data engineer is writing a script that is meant to ingest new data from cloud storage. In the event of the Schema change, the ingestion should fail. It should fail until the changes downstream source can be found and verified as intended changes.

Which command will meet the requirements?

Explanation

Auto Loader's schema evolution mode failOnNewColumns stops the stream as soon as it detects a new column, requiring the schema to be explicitly updated before the pipeline can resume, which matches the requirement that ingestion halt until the change is reviewed and confirmed intentional. The other modes either add new columns automatically (addNewColumns, the default), silently capture unexpected data without failing (rescue), or ignore new columns entirely (none).

Learn more

Community Discussion

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