Skip to content

chore: add safety linter to sqlalchemy-bigquery compiler - #19146

Merged
parthea merged 2 commits into
mainfrom
tswast-value-linter
Nov 20, 2026
Merged

parthea merged 2 commits into
mainfrom
tswast-value-linter

Conversation

@tswast

@tswast tswast commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

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)

Follow-up to #19049 🦕

@tswast
tswast requested review from a team as code owners November 19, 2026 21:34
@tswast
tswast requested review from julianxu-goog and removed request for a team November 19, 2026 21:34

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds an AST linter script (check_compiler_safety.py) and its corresponding unit tests to prevent unescaped .value interpolation in SQLAlchemy compilers, integrating this check into the Nox linting pipeline. Feedback on the pull request suggests refining the _is_dispatch_sanitizer_call function to only match compiler receivers (such as self or compiler) to prevent potential false negatives where non-compiler objects call methods named process or starting with visit_.

@julianxu-goog julianxu-goog left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thorough taint tracking and test coverage

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@parthea
parthea merged commit 432925a into main Nov 20, 2026
83 checks passed
@parthea
parthea deleted the tswast-value-linter branch November 20, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants