Skip to content

fix(sqlalchemy-bigquery): resolve ST function type binding bug#17769

Open
ohmayr wants to merge 4 commits into
mainfrom
fix-sqlalchemy-bigquery-geography-bug
Open

fix(sqlalchemy-bigquery): resolve ST function type binding bug#17769
ohmayr wants to merge 4 commits into
mainfrom
fix-sqlalchemy-bigquery-geography-bug

Conversation

@ohmayr

@ohmayr ohmayr commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Fixes an issue in _fixup_st_arguments where argument types were redundantly re-instantiated on every compiler pass due to comparing an instance with a class using is instead of sinstance. Also adds unit test coverage for _fixup_st_arguments and unskips test_geoalchemy2_core unit test.

Fixes #17287 🦕

@ohmayr
ohmayr requested review from a team as code owners July 20, 2026 08:40
@ohmayr
ohmayr requested review from GarrettWu and removed request for a team July 20, 2026 08:40

@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 simplifies the argument type checking logic in _fixup_st_arguments within geography.py by removing a redundant identity check. Additionally, it unskips the test_geoalchemy2_core unit test, updates its expected query string, and introduces a new unit test test_fixup_st_arguments to verify the argument fixup behavior. There are no review comments, so I have no feedback to provide.

@ohmayr
ohmayr force-pushed the fix-sqlalchemy-bigquery-geography-bug branch 2 times, most recently from e41196b to 2102681 Compare July 20, 2026 08:49
Comment thread packages/sqlalchemy-bigquery/tests/unit/test_geography.py Outdated
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.

sqlalchemy-bigquery: test_geoalchemy2_core failing in test_geography.py

2 participants