Skip to content

fix: rename columns with protected names such as _TABLE_SUFFIX in to_gbq() #1691

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

Merged
merged 32 commits into from
May 6, 2025

Conversation

tswast
Copy link
Collaborator

@tswast tswast commented May 5, 2025

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> 🦕

tswast and others added 29 commits April 26, 2025 22:08
…g pseudocolumns

Fixes this code sample:

import bigframes.pandas as bpd
df = bpd.read_gbq("bigquery-public-data.google_analytics_sample.ga_sessions_*")
df[df["_TABLE_SUFFIX"] == "20161204"].peek()
@tswast tswast requested a review from a team as a code owner May 5, 2025 22:01
@tswast tswast requested a review from a team as a code owner May 5, 2025 22:01
@tswast tswast requested a review from chelsea-lin May 5, 2025 22:01
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels May 5, 2025
@tswast tswast changed the title fix: rename columns with protected names such as _TABLE_SUFFIX in to_gbq() and cached() fix: rename columns with protected names such as _TABLE_SUFFIX in to_gbq() May 5, 2025
@tswast tswast merged commit 8ec6079 into main May 6, 2025
24 checks passed
@tswast tswast deleted the b405773140-fix-protected-name-serialize branch May 6, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants