Skip to content

fix: make tool description for bigquery execute_sql for various write modes self contained #2308

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 1 commit into from
Aug 21, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Aug 2, 2025

fix: make tool description for bigquery execute_sql for various write modes self contained

So far we had a default docstring for the execute-sql tool and for non-default write modes we were concatenating more content to it. This was working fine in Python 3.9-3.12 but broke in Python 3.13 because of a nuanced difference in the string concatenation to the __doc__ property of a function b/433914562#comment4. This change makes the docstring management more robust and readable.

@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Aug 2, 2025
@copybara-service copybara-service bot changed the title refactor: make descriptions for various write modes for execute-sql tool self contained fix: make tool description for bigquery execute_sql for various write modes self contained Aug 21, 2025
@copybara-service copybara-service bot force-pushed the copybara/790016525 branch 12 times, most recently from 28f8281 to c64910f Compare August 21, 2025 12:17
…te modes self contained

So far we had a default docstring for the `execute-sql` tool and for non-default write modes we were concatenating more content to it. This was working fine in Python 3.9-3.12 but broke in Python 3.13 because of a nuanced difference in the string concatenation to the `__doc__` property of a function b/433914562#comment4. This change makes the docstring management more robust and readable.

PiperOrigin-RevId: 797843736
@copybara-service copybara-service bot merged commit 167182b into main Aug 21, 2025
@copybara-service copybara-service bot deleted the copybara/790016525 branch August 21, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant