Skip to content

Destination bigquery: Write compressed CSV files - #61432

Merged
Edward Gao (edgao) merged 4 commits into
masterfrom
edgao/write_compressed_data
Jun 10, 2025
Merged

Edward Gao (edgao) merged 4 commits into
masterfrom
edgao/write_compressed_data

Conversation

@edgao

@edgao Edward Gao (edgao) commented Jun 6, 2025 •

Copy link
Copy Markdown
Contributor

this matches the old connector's behavior -

bigquery apparently magically detects whether the CSV file is compressed. There's (afaict) no explicit option for it.

(... I could be convinced to actually release this on the mainline connector, rather than only putting it on the direct-load version? I'll do a prerelease in the perf workspace, and if it's faster, I'll rebase this branch onto master.)

closes https://github.com/airbytehq/airbyte-internal-issues/issues/12790

Important

Auto-merge enabled.

This PR is set to merge automatically when all requirements are met.

@vercel

vercel Bot commented Jun 6, 2025 •

Copy link
Copy Markdown

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 10, 2025 4:20pm

@github-actions

github-actions Bot commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

👋 Greetings, Contributor!

Here are some helpful tips and reminders for your convenience.

Helpful Resources

PR Slash Commands

Airbyte Maintainers (that's you!) can execute the following slash commands on your PR:

  • /format-fix - Fixes most formatting issues.
  • /bump-version - Bumps connector versions.
    • You can specify a custom changelog by passing changelog. Example: /bump-version changelog="My cool update"
    • Leaving the changelog arg blank will auto-populate the changelog from the PR title.
  • /run-cat-tests - Runs legacy CAT tests (Connector Acceptance Tests)
  • /build-connector-images - Builds and publishes a pre-release docker image for the modified connector(s).

📝 Edit this welcome message.

@cgardens Charles (cgardens) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Less data means moar speed. 👍

@gosusnp Jimmy Ma (gosusnp) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Edward Gao (@edgao), Charles (@cgardens), one thought about this is that we probably want to verify the performance impact on a CPU constrained sync.

@github-actions

github-actions Bot commented Jun 6, 2025 •

Copy link
Copy Markdown
Contributor

destination-bigquery Connector Test Results

220 tests   162 ✅  26m 52s ⏱️
 11 suites   58 💤
 11 files      0 ❌

Results for commit 059f9a0.

♻️ This comment has been updated with latest results.

@edgao
Edward Gao (edgao) marked this pull request as draft June 6, 2025 22:47
@edgao
Edward Gao (edgao) force-pushed the edgao/write_compressed_data branch from 89fa117 to 4483508 Compare June 6, 2025 22:47
@edgao
Edward Gao (edgao) changed the base branch from destination_bigquery_direct_load to master June 6, 2025 22:47
@edgao

Copy link
Copy Markdown
Contributor Author

Jimmy Ma (@gosusnp) I've actually observed the same slower perf with the bulk CDK version on normal (i.e. nonboosted) syncs, so inclined to say this will be an improvement overall

(i.e I'm going to put off testing nonboosted syncs until we get to actual proj-speed stuff next cycle)

@edgao
Edward Gao (edgao) marked this pull request as ready for review June 6, 2025 22:50
@edgao

Copy link
Copy Markdown
Contributor Author

rebased on master + added the metadata+changelog bumps. Will merge this on monday - should be a pretty safe change, but I don't see a reason to do this at 4pm on a friday :P

@edgao Edward Gao (edgao) changed the title Destination bigquery direct-load: Write compressed CSV files Destination bigquery: Write compressed CSV files Jun 6, 2025
@frifriSF59

Copy link
Copy Markdown
Contributor

There's (afaict) no explicit option for it.

Apparently the best we can do is .setAutodetect(false) and maybe set the file extensions?

@edgao
Edward Gao (edgao) enabled auto-merge (squash) June 10, 2025 16:09
@edgao
Edward Gao (edgao) merged commit be96aa2 into master Jun 10, 2025
@edgao
Edward Gao (edgao) deleted the edgao/write_compressed_data branch June 10, 2025 16:20

This branch was successfully deployed

1 active deployment
Preview — 059f9a09 Deployed Jun 10, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants