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 — fix: remove query text from exception message, use `exception.debug_message` instead by tswast · Pull Request #1105 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@tswast

@tswast tswast commented Jan 11, 2022

Copy link
Copy Markdown
Contributor

Since query text can potentially contain sensitive information, remove it from
the default exception message. This information is useful for debugging, so
provide a debug_message attribute, which is not included in the exception
representation (and thus the logs).

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 internal issue 211616590
🦕

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast
fix: remove query text from exception message, use `exception.debug_m…
4e96e78
…essage` instead

Since query text can potentially contain sensitive information, remove it from
the default exception message. This information is useful for debugging, so
provide a `debug_message` attribute, which is not included in the exception
representation (and thus the logs).

Fixes internal issue 211616590
@tswast
tswast requested review from a team and loferris January 11, 2022 22:53
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jan 11, 2022
@tswast
tswast requested a review from parthea January 11, 2022 22:53
@tswast tswast mentioned this pull request Mar 2, 2026
Custom exception types for amended query job exceptions googleapis/google-cloud-python#15733
Open
busunkim96
busunkim96 approved these changes Jan 12, 2022
View reviewed changes
@tswast
tswast merged commit e23114c into main Jan 12, 2022
@tswast
tswast deleted the b211616590-query-exception branch January 12, 2022 21:25
@release-please release-please Bot mentioned this pull request Jan 12, 2022
chore(main): release 2.32.0 #1104
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jan 13, 2022
@release-please
chore(main): release 2.32.0 (#1104)
643b333
🤖 I have created a release *beep* *boop*
---


## [2.32.0](v2.31.0...v2.32.0) (2022-01-12)


### Features

* support authorized dataset entity ([#1075](#1075)) ([c098cd0](c098cd0))


### Bug Fixes

* remove query text from exception message, use `exception.debug_message` instead ([#1105](#1105)) ([e23114c](e23114c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@release-please release-please Bot mentioned this pull request Jan 13, 2022
chore(main): release 2.32.0 #1108
Closed
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull request Apr 17, 2023
@tswast @abdelmegahedgoogle
fix: remove query text from exception message, use `exception.debug_m…
ec6b17c
…essage` instead (googleapis#1105)

Since query text can potentially contain sensitive information, remove it from
the default exception message. This information is useful for debugging, so
provide a `debug_message` attribute, which is not included in the exception
representation (and thus the logs).

Fixes internal issue 211616590
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull request Apr 17, 2023
@release-please @abdelmegahedgoogle
chore(main): release 2.32.0 (googleapis#1104)
742edc9
🤖 I have created a release *beep* *boop*
---


## [2.32.0](googleapis/python-bigquery@v2.31.0...v2.32.0) (2022-01-12)


### Features

* support authorized dataset entity ([googleapis#1075](googleapis#1075)) ([c098cd0](googleapis@c098cd0))


### Bug Fixes

* remove query text from exception message, use `exception.debug_message` instead ([googleapis#1105](googleapis#1105)) ([e23114c](googleapis@e23114c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Mar 6, 2026
@release-please
chore(main): release 2.32.0 (#1104)
a19a2f1
🤖 I have created a release *beep* *boop*
---


## [2.32.0](googleapis/python-bigquery@v2.31.0...v2.32.0) (2022-01-12)


### Features

* support authorized dataset entity ([#1075](googleapis/python-bigquery#1075)) ([c098cd0](googleapis/python-bigquery@c098cd0))


### Bug Fixes

* remove query text from exception message, use `exception.debug_message` instead ([#1105](googleapis/python-bigquery#1105)) ([e23114c](googleapis/python-bigquery@e23114c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@loferris loferris Awaiting requested review from loferris
@parthea parthea Awaiting requested review from parthea
1 more reviewer
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

api: bigquery Issues related to the googleapis/python-bigquery API.

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.

2 participants

@tswast @busunkim96
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.