QuestionQ28

VerifiedDevelopment and Ingestion

A data engineer runs a statement every day to copy the previous day’s sales into the table transactions. Each day’s sales are in their own file in the location "/transactions/raw".

Today, the data engineer runs the following command to complete this task:

Question Image

After running the command today, the data engineer notices that the number of records in table transactions has not changed.

Which of the following describes why the statement might not have copied any new records into the table?

Explanation

Databricks COPY INTO maintains an internal file state log to track which files have already been processed. Running COPY INTO on the same file location skips previously copied files to prevent duplicate ingestion. If no new records were added, the file containing the previous day's sales had already been copied into the table during an earlier execution.

Community Discussion

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