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: Implement refreshes logic #38713

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

edgao
Copy link
Contributor

@edgao edgao commented May 28, 2024

What

How

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES πŸ’š
  • NO ❌

Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
airbyte-docs βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 17, 2024 4:05pm

@edgao edgao force-pushed the edgao/core_interface_change branch from a99921b to 1b8885a Compare May 28, 2024 16:08
@edgao edgao force-pushed the edgao/bigquery_refreshes branch from ee71a58 to 9b7b756 Compare May 28, 2024 16:08
@edgao edgao force-pushed the edgao/core_interface_change branch from 1b8885a to 0a559fa Compare May 28, 2024 16:20
@edgao edgao force-pushed the edgao/bigquery_refreshes branch 2 times, most recently from a8e4fb3 to af13ed8 Compare May 28, 2024 17:42
@edgao edgao force-pushed the edgao/core_interface_change branch from 0a559fa to 84952f4 Compare May 28, 2024 18:00
@edgao edgao force-pushed the edgao/bigquery_refreshes branch 3 times, most recently from c07d187 to 7187741 Compare May 28, 2024 18:16
@edgao edgao force-pushed the edgao/core_interface_change branch from 84952f4 to 9e777b6 Compare May 28, 2024 18:44
@edgao edgao force-pushed the edgao/bigquery_refreshes branch from 7187741 to 51ced08 Compare May 28, 2024 18:44
@edgao edgao force-pushed the edgao/core_interface_change branch from 9e777b6 to 0c713f4 Compare May 28, 2024 18:57
@edgao edgao force-pushed the edgao/bigquery_refreshes branch from 51ced08 to 71966ff Compare May 28, 2024 18:57
@edgao edgao force-pushed the edgao/core_interface_change branch from 0c713f4 to 2f82eef Compare May 28, 2024 19:57
@edgao edgao force-pushed the edgao/bigquery_refreshes branch from 71966ff to 656afed Compare May 28, 2024 19:57
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label May 28, 2024
@edgao edgao force-pushed the edgao/core_interface_change branch from 2f82eef to 23ca526 Compare May 28, 2024 21:19
@edgao edgao force-pushed the edgao/bigquery_refreshes branch from 656afed to d8eab42 Compare May 28, 2024 21:19
@edgao edgao force-pushed the edgao/core_interface_change branch from 23ca526 to d7fd028 Compare May 28, 2024 22:31
@edgao edgao force-pushed the edgao/bigquery_refreshes branch from d8eab42 to 871ba24 Compare May 28, 2024 22:31
@edgao edgao force-pushed the edgao/core_interface_change branch from d7fd028 to 4653aff Compare May 29, 2024 15:13
if (suffix == "") {
throw IllegalArgumentException("Cannot overwrite raw table with empty suffix")
}
bigquery.delete(tableId(streamId, ""))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it have to be a no-op when table doesn't exist semantics ? if i remove IF EXISTS in snowflake, truncateRefresh tests fail. as-in this is called when actual table doesn't exist too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yeah there's no if rawTableExists check anywhere. We could add that, but I think it's easier to just do if not exists?

(I'll update the javadoc to clarify that that's a requirement)

@edgao edgao force-pushed the edgao/core_interface_change branch from 3e6f038 to d603b35 Compare June 14, 2024 15:53
@edgao edgao force-pushed the edgao/core_interface_change branch from d603b35 to 9178356 Compare June 14, 2024 15:58
@edgao edgao force-pushed the edgao/core_interface_change branch from 9178356 to 19237b7 Compare June 14, 2024 16:00
@edgao edgao force-pushed the edgao/core_interface_change branch from c7720b1 to 19024dd Compare June 17, 2024 14:38
@edgao edgao force-pushed the edgao/core_interface_change branch 2 times, most recently from dac51cc to c14b2a8 Compare June 17, 2024 15:46
Base automatically changed from edgao/core_interface_change to master June 17, 2024 15:59
@edgao edgao enabled auto-merge (squash) June 17, 2024 16:01
@edgao edgao merged commit 9b36fa0 into master Jun 17, 2024
29 of 30 checks passed
@edgao edgao deleted the edgao/bigquery_refreshes branch June 17, 2024 16:19
This pull request was closed.
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 connectors/destination/bigquery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants