Replies: 2 comments 4 replies
|
I can only think of one other option than the ones you've already listed: you could store a |
1 reply
|
Dataform does a Or perhaps I am missing something else? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Assuming a large source table with the following data:
And an incremental model:
Then the next day, the table looks like this:
If we don't do anything in particular, the incremental model will miss the row that was inserted "before" the latest in the target table.
If we use a "lookback" value in the
FROMclause (saymax(received_at) - interval 1 day), we'll end up with duplicated data.We could use the
unique_keyapproach, but this isn't always applicable and is potentially prohibitively expensive on large tables / partitions.What is the recommended approach to deal with this kind of late-arriving data?
All reactions