Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: SQL Cell no longer escapes formatted string values#2245

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tswast merged 6 commits intomainfromb455813915-pyformat-str
Nov 10, 2025

Conversation

@google-labs-jules
Copy link
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 task5189763854933796072

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
Copy link
ContributorAuthor

👋 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 toReactive 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 thePull Request section of yourglobal 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 atjules.google/docs.

@product-auto-labelproduct-auto-labelbot added size: sPull request size is small. api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API. labelsNov 10, 2025
@tswasttswast marked this pull request as ready for reviewNovember 10, 2025 14:49
@tswasttswast requested review froma team ascode ownersNovember 10, 2025 14:49
tswast
tswast previously approved these changesNov 10, 2025
@tswasttswast requested a review fromsycaiNovember 10, 2025 14:50
@tswast
Copy link
Collaborator

@google-labs-julesnox -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

@google-labs-jules
Copy link
ContributorAuthor

@google-labs-julesnox -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!

@google-labs-jules
Copy link
ContributorAuthor

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

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
Copy link
Collaborator

Remaining test should be fixed by#2246

google-labs-jules[bot] reacted with eyes emoji

@google-labs-jules
Copy link
ContributorAuthor

Remaining test should be fixed by#2246

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

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 changesNov 10, 2025
sycai
sycai previously approved these changesNov 10, 2025
@tswasttswastenabled auto-merge (squash)November 10, 2025 18:35
@tswasttswastenabled auto-merge (squash)November 10, 2025 18:35
@tswasttswast added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2025
@bigframes-botbigframes-bot removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2025
@tswasttswast added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2025
@bigframes-botbigframes-bot removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelNov 10, 2025
@tswasttswast merged commitd2d38f9 intomainNov 10, 2025
20 of 26 checks passed
@tswasttswast deleted the b455813915-pyformat-str branchNovember 10, 2025 20:22
@tswasttswast changed the titlefeat: embed str values directly in pyformatfeat: SQL Cell no longer escapes formatted string valuesNov 10, 2025
sycai pushed a commit that referenced this pull requestNov 10, 2025
🤖 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 EarthEngine([#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 JSONsubfields 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 [ReleasePlease](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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

@sycaisycaisycai approved these changes

@GarrettWuGarrettWuAwaiting requested review from GarrettWuGarrettWu is a code owner automatically assigned from googleapis/api-bigquery-dataframe

Assignees

@tswasttswast

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.size: sPull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@tswast@sycai@bigframes-bot

[8]ページ先頭

©2009-2025 Movatter.jp