-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destination Bigquery+Snowflake: Fix resuming truncate refresh #41041
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
...rc/main/kotlin/io/airbyte/integrations/base/destination/operation/AbstractStreamOperation.kt
Show resolved
Hide resolved
(!streamSuccessful || | ||
(syncSummary.recordsWritten == 0L && | ||
!(initialRawTableStatus.rawTableExists && | ||
initialRawTableStatus.hasUnprocessedRecords))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I think I understand: before if we crashed and started again but had no more records, we'd incorrectly interpret that as there being no intermediate state. This clarifies: we need both 0 new records AND the tmp table not to exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep. tried to capture that in the comment :/ but this is definitely an ugly conditional
/publish-java-cdk
|
@@ -223,7 +223,8 @@ tutorials: | |||
|
|||
| Version | Date | Pull Request | Subject | | |||
|:--------|:-----------|:-----------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------| | |||
| 2.8.1 | 2024-06-25 | [39379](https://github.com/airbytehq/airbyte/pull/38331) | Removing requirement of a redundant permission bigquery.datasets.create permission | | |||
| 2.8.2 | 2024-07-08 | [41041](https://github.com/airbytehq/airbyte/pull/41041) | Fix resume logic in truncate refreshes to prevent data loss | | |||
| 2.8.1 | 2024-06-25 | [39379](https://github.com/airbytehq/airbyte/pull/39379) | Removing requirement of a redundant permission bigquery.datasets.create permission | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(fixing a copypasta error in the url - no other changes in this line)
closes #41036