GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: SQL Cell no longer escapes formatted string values by google-labs-jules[bot] · Pull Request #2245 · google/bigframes

Conversation

@google-labs-jules

@google-labs-jules google-labs-jules Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

This change updates bigframes/core/pyformat.py to directly embed str values rather than escaping them first. Unit tests have been updated to reflect this change.


PR created automatically by Jules for task 5189763854933796072

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@google-labs-jules
feat: embed str values directly in pyformat
9614f97
Updates `bigframes/core/pyformat.py` to directly embed string values in the formatted output. This allows for dynamic substitution of SQL identifiers, such as table or column names.

Updated unit tests to reflect this new behavior by using valid SQL identifiers in the test cases.
@google-labs-jules

google-labs-jules Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Nov 10, 2025
@tswast
tswast marked this pull request as ready for review November 10, 2025 14:49
@tswast
tswast requested review from a team and GarrettWu November 10, 2025 14:49
@blunderbuss-gcf blunderbuss-gcf Bot assigned tswast Nov 10, 2025
tswast
tswast previously approved these changes Nov 10, 2025
View reviewed changes
@tswast
tswast requested a review from sycai November 10, 2025 14:50
@tswast

tswast commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

@google-labs-jules nox -r -s unit-3.11 is failing.

FAILED tests/unit/pandas/io/test_api.py::test_read_gbq_colab_calls_set_location - assert "SELECT 'value1' AS param1" == 'SELECT value1 AS param1'
  
  - SELECT value1 AS param1
  + SELECT 'value1' AS param1
  ?        +      +

It seems this may be related to this change. Please fix.

google-labs-jules[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-labs-jules

google-labs-jules Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

@google-labs-jules nox -r -s unit-3.11 is failing.

FAILED tests/unit/pandas/io/test_api.py::test_read_gbq_colab_calls_set_location - assert "SELECT 'value1' AS param1" == 'SELECT value1 AS param1'
  
  - SELECT value1 AS param1
  + SELECT 'value1' AS param1
  ?        +      +

It seems this may be related to this change. Please fix.

You are right, that test was failing due to my changes. I have now fixed the test. Thank you for catching that!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-labs-jules

google-labs-jules Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

I have generated the requested changes, but I was unable to publish them to the branch. You can publish the changes manually from the Jules UI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-labs-jules
fix: correct failing test in test_api.py
e249c20
This commit fixes a unit test that was failing due to the changes in pyformat. The test is updated to pass a pre-quoted string, ensuring the resulting SQL is valid.
@tswast
tswast dismissed their stale review via e249c20 November 10, 2025 15:06
@tswast

tswast commented Nov 10, 2025

Copy link
Copy Markdown
Collaborator

Remaining test should be fixed by #2246

google-labs-jules[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-labs-jules

google-labs-jules Bot commented Nov 10, 2025

Copy link
Copy Markdown
Contributor Author

Remaining test should be fixed by #2246

Thank you for the information. I will consider my work on this issue complete.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@google-labs-jules
feat: embed str values directly in pyformat
f774fd8
Updates `bigframes/core/pyformat.py` to directly embed string values in the formatted output. This allows for dynamic substitution of SQL identifiers, such as table or column names.

Updated unit tests to reflect this new behavior by using valid SQL identifiers in the test cases.
tswast
tswast previously approved these changes Nov 10, 2025
View reviewed changes
sycai
sycai previously approved these changes Nov 10, 2025
View reviewed changes
sycai added 2 commits November 10, 2025 09:54
@sycai
Merge branch 'main' into b455813915-pyformat-str
e19598e
@sycai
Merge branch 'main' into b455813915-pyformat-str
7b73c18
@tswast
tswast enabled auto-merge (squash) November 10, 2025 18:35
@tswast
tswast disabled auto-merge November 10, 2025 18:35
@tswast
tswast enabled auto-merge (squash) November 10, 2025 18:35
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2025
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2025
@tswast
fix system test
8697db9
@tswast
tswast dismissed sycai’s stale review via 8697db9 November 10, 2025 19:43
@tswast
tswast dismissed their stale review via 8697db9 November 10, 2025 19:43
tswast
tswast approved these changes Nov 10, 2025
View reviewed changes
sycai
sycai approved these changes Nov 10, 2025
View reviewed changes
@tswast tswast added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2025
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2025
@tswast
tswast merged commit d2d38f9 into main Nov 10, 2025
@tswast
tswast deleted the b455813915-pyformat-str branch November 10, 2025 20:22
@release-please release-please Bot mentioned this pull request Nov 10, 2025
chore(main): release 2.29.0 #2242
Merged
@tswast tswast changed the title feat: embed str values directly in pyformat feat: SQL Cell no longer escapes formatted string values Nov 10, 2025
sycai pushed a commit that referenced this pull request Nov 10, 2025
@release-please
chore(main): release 2.29.0 (#2242)
44e9869
🤖 I have created a release *beep* *boop*
---


##
[2.29.0](v2.28.0...v2.29.0)
(2025-11-10)


### Features

* Add bigframes.bigquery.st_regionstats to join raster data from Earth
Engine
([#2228](#2228))
([10ec52f](10ec52f))
* Add DataFrame.resample and Series.resample
([#2213](#2213))
([c9ca02c](c9ca02c))
* SQL Cell no longer escapes formatted string values
([#2245](#2245))
([d2d38f9](d2d38f9))
* Support left_index and right_index for merge
([#2220](#2220))
([da9ba26](da9ba26))


### Bug Fixes

* Correctly iterate over null struct values in ManagedArrowTable
([#2209](#2209))
([12e04d5](12e04d5))
* Simplify UnsupportedTypeError message
([#2212](#2212))
([6c9a18d](6c9a18d))
* Support results with STRUCT and ARRAY columns containing JSON
subfields in `to_pandas_batches()`
([#2216](#2216))
([3d8b17f](3d8b17f))


### Documentation

* Switch API reference docs to pydata theme
([#2237](#2237))
([9b86dcf](9b86dcf))
* Update notebook for JSON subfields support in to_pandas_batches()
([#2138](#2138))
([5663d2a](5663d2a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@gkevinzheng gkevinzheng mentioned this pull request Nov 13, 2025
chore: librarian release pull request: 20251113T215818Z #2265
Closed
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 1, 2026
@release-please
chore(main): release 2.29.0 (#2242)
a69afc4
🤖 I have created a release *beep* *boop*
---


##
[2.29.0](google/bigframes@v2.28.0...v2.29.0)
(2025-11-10)


### Features

* Add bigframes.bigquery.st_regionstats to join raster data from Earth
Engine
([#2228](google/bigframes#2228))
([10ec52f](google/bigframes@10ec52f))
* Add DataFrame.resample and Series.resample
([#2213](google/bigframes#2213))
([c9ca02c](google/bigframes@c9ca02c))
* SQL Cell no longer escapes formatted string values
([#2245](google/bigframes#2245))
([d2d38f9](google/bigframes@d2d38f9))
* Support left_index and right_index for merge
([#2220](google/bigframes#2220))
([da9ba26](google/bigframes@da9ba26))


### Bug Fixes

* Correctly iterate over null struct values in ManagedArrowTable
([#2209](google/bigframes#2209))
([12e04d5](google/bigframes@12e04d5))
* Simplify UnsupportedTypeError message
([#2212](google/bigframes#2212))
([6c9a18d](google/bigframes@6c9a18d))
* Support results with STRUCT and ARRAY columns containing JSON
subfields in `to_pandas_batches()`
([#2216](google/bigframes#2216))
([3d8b17f](google/bigframes@3d8b17f))


### Documentation

* Switch API reference docs to pydata theme
([#2237](google/bigframes#2237))
([9b86dcf](google/bigframes@9b86dcf))
* Update notebook for JSON subfields support in to_pandas_batches()
([#2138](google/bigframes#2138))
([5663d2a](google/bigframes@5663d2a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tswast tswast tswast approved these changes
@sycai sycai sycai approved these changes
@GarrettWu GarrettWu Awaiting requested review from GarrettWu

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tswast tswast

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@tswast @sycai @bigframes-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.