Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

feat: Add deferred data uploading#1720

Merged
TrevorBergeron merged 12 commits intomainfrom
large_local
May 22, 2025
Merged

feat: Add deferred data uploading#1720
TrevorBergeron merged 12 commits intomainfrom
large_local

Conversation

@TrevorBergeron
Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels May 9, 2025
@TrevorBergeron TrevorBergeron requested a review from tswast May 14, 2025 00:33
@TrevorBergeron TrevorBergeron marked this pull request as ready for review May 14, 2025 00:34
@TrevorBergeron TrevorBergeron requested review from a team May 14, 2025 00:34
Comment on lines +549 to +554
if node.offsets_col is not None:
scan_list = scan_list.append(
bq_source.table.physical_schema[-1].name,
bigframes.dtypes.INT_DTYPE,
node.offsets_col,
)
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.

What's the reason that offsets_col isn't in source_mapping, already? Could you add a comment explaining it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Its a bit clumsy due to offsets_col only really being a thing for the local node, so when we upload, we will set the final physical column to be those offsets, but then we just have to add to the end of the scan_list for the ReadTableNode. Added a comment to explain. Probably some room to respec the leaf nodes for a bit more of a 1:1 mapping.

@TrevorBergeron TrevorBergeron requested a review from tswast May 16, 2025 18:04
@TrevorBergeron TrevorBergeron merged commit 1f6442e into main May 22, 2025
24 checks passed
@TrevorBergeron TrevorBergeron deleted the large_local branch May 22, 2025 15:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants