dataform-co / dataform

Dataform is a framework for managing SQL based data operations in BigQuery
https://cloud.google.com/dataform/docs
Apache License 2.0
838 stars 160 forks source link

The deleteNonMatched incremental table option #1758

Open AaronRobins opened 3 months ago

AaronRobins commented 3 months ago

Hey Dataform Team,

First let me say thanks for building a super useful platform big fan.

disclaimer - this may be a terrible idea, I am not across the full repository and its use cases.

  1. Currently, incremental tables hold onto rows which are in the target, but are no longer in the source
  2. This is because of the MERGE operation which is 'under the hood'
  3. Although its not a common use case, it can happen a row is dropped from source data and we too want that row dropped in the target table

My proposed solution would be: