Skip to content
RED SAG Skills
hardStudy question · answer published in Airflow interview questions, so no pointsairflowidempotencyairflow-retries

Doubled rows after a retry

A task runs INSERT INTO sales SELECT ... for the day, then fails while refreshing a summary. The retry succeeds, and that day's sales now appear twice. What is the right fix?

INSERT INTO sales SELECT * FROM staging WHERE dt = '{{ ds }}';
REFRESH MATERIALIZED VIEW sales_summary;  -- failed here
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions