Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 15, 2025

Bumps sqlalchemy from 1.4.52 to 2.0.45.

Release notes

Sourced from sqlalchemy's releases.

2.0.45

Released: December 9, 2025

orm

  • [orm] [bug] Fixed issue where calling Mapper.add_property() within mapper event hooks such as MapperEvents.instrument_class(), MapperEvents.after_mapper_constructed(), or MapperEvents.before_mapper_configured() would raise an AttributeError because the mapper's internal property collections were not yet initialized. The Mapper.add_property() method now handles early-stage property additions correctly, allowing properties including column properties, deferred columns, and relationships to be added during mapper initialization events. Pull request courtesy G Allajmi.

    References: #12858

  • [orm] [bug] Fixed issue in Python 3.14 where dataclass transformation would fail when a mapped class using MappedAsDataclass included a relationship() referencing a class that was not available at runtime (e.g., within a TYPE_CHECKING block). This occurred when using Python 3.14's PEP 649 deferred annotations feature, which is the default behavior without a from __future__ import annotations directive.

    References: #12952

examples

  • [examples] [bug] Fixed the "short_selects" performance example where the cache was being used in all the examples, making it impossible to compare performance with and without the cache. Less important comparisons like "lambdas" and "baked queries" have been removed.

sql

  • [sql] [bug] Some improvements to the _sql.ClauseElement.params() method to replace bound parameters in a query were made, however the ultimate issue in #12915 involving ORM _orm.aliased() cannot be fixed fully until 2.1, where the method is being rewritten to work without relying on Core cloned traversal.

    References: #12915

  • [sql] [bug] Fixed issue where using the ColumnOperators.in_() operator with a nested CompoundSelect statement (e.g. an INTERSECT of UNION queries) would raise a NotImplementedError when the

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Dec 15, 2025
@xiangfu0
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/sqlalchemy-2.0.45 branch from cdb04e6 to bc22d77 Compare December 15, 2025 07:34
@xiangfu0
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/sqlalchemy-2.0.45 branch from bc22d77 to 0cd8875 Compare December 15, 2025 07:39
@xiangfu0
Copy link
Contributor

xiangfu0 commented Jan 2, 2026

https://github.com/dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/pip/sqlalchemy-2.0.45 branch 4 times, most recently from 841057a to f5f34f1 Compare January 2, 2026 13:15
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.52 to 2.0.45.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-version: 2.0.45
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/sqlalchemy-2.0.45 branch from f5f34f1 to 441fd35 Compare January 2, 2026 13:18
@xiangfu0 xiangfu0 requested a review from Copilot January 2, 2026 14:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades SQLAlchemy from version 1.4.52 to 2.0.45, implementing necessary API changes to maintain compatibility with SQLAlchemy 2.x. The upgrade includes updates to the dialect implementation and migration of deprecated APIs in example scripts.

Key changes:

  • Updated SQLAlchemy version constraint from >=1.4,<2 to >=2.0,<3
  • Modified dialect implementation to support SQLAlchemy 2.x initialization patterns
  • Migrated example scripts from deprecated SQLAlchemy 1.x APIs to 2.x equivalents
  • Removed Python 3.9 from CI test matrix

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pyproject.toml Updated SQLAlchemy version constraint to 2.x
pinotdb/sqlalchemy.py Added SQLAlchemy 2.x compatibility methods and updated identifier preparer initialization
examples/pinot_quickstart_multi_stage.py Fixed query endpoint URL
examples/pinot_quickstart_json_batch.py Migrated to SQLAlchemy 2.x query APIs and connection patterns
examples/pinot_quickstart_hybrid.py Migrated to SQLAlchemy 2.x query APIs and connection patterns
examples/pinot_quickstart_batch.py Migrated to SQLAlchemy 2.x query APIs and connection patterns
examples/pinot_quickstart_auth_zk.py Migrated to SQLAlchemy 2.x query APIs and connection patterns
examples/pinot_live.py Migrated to SQLAlchemy 2.x query APIs and connection patterns
README.md Updated documentation to reflect SQLAlchemy 2.x usage patterns
.github/workflows/pinot_dbapi_test.yml Removed Python 3.9 from test matrix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiangfu0 xiangfu0 requested a review from Copilot January 2, 2026 14:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiangfu0 xiangfu0 requested a review from Copilot January 2, 2026 14:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiangfu0 xiangfu0 requested a review from Copilot January 2, 2026 16:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiangfu0 xiangfu0 force-pushed the dependabot/pip/sqlalchemy-2.0.45 branch from c4008d2 to 50a40dd Compare January 2, 2026 17:17
@xiangfu0 xiangfu0 requested a review from Copilot January 2, 2026 17:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiangfu0 xiangfu0 force-pushed the dependabot/pip/sqlalchemy-2.0.45 branch from c275b16 to 5194d08 Compare January 2, 2026 17:36
@xiangfu0 xiangfu0 requested a review from Copilot January 2, 2026 17:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiangfu0 xiangfu0 merged commit 156be4c into master Jan 2, 2026
5 of 6 checks passed
@xiangfu0 xiangfu0 deleted the dependabot/pip/sqlalchemy-2.0.45 branch January 2, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants