Skip to content
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

Merged
merged 7 commits into from
Jul 9, 2024

Conversation

edgao
Copy link
Contributor

@edgao edgao commented Jul 8, 2024

closes #41036

@edgao edgao requested a review from a team as a code owner July 8, 2024 16:51
Copy link

vercel bot commented Jul 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Jul 9, 2024 0:57am

(!streamSuccessful ||
(syncSummary.recordsWritten == 0L &&
!(initialRawTableStatus.rawTableExists &&
initialRawTableStatus.hasUnprocessedRecords)))
Copy link
Contributor

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.

Copy link
Contributor Author

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

@edgao edgao requested a review from a team as a code owner July 8, 2024 23:08
@edgao
Copy link
Contributor Author

edgao commented Jul 8, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/9848178425
✅ Successfully published Java CDK version=0.40.11!

@edgao edgao enabled auto-merge (squash) July 8, 2024 23:20
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Jul 8, 2024
@@ -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 |
Copy link
Contributor Author

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)

@edgao edgao merged commit b2e7895 into master Jul 9, 2024
35 checks passed
@edgao edgao deleted the edgao/truncate_resume_fix branch July 9, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/destination/bigquery connectors/destination/snowflake
Projects
None yet
4 participants