Skip to content

Support SQLAlchemy 1.4 across the dialect - #121

Merged
vgvoleg merged 1 commit into
mainfrom
sqlalchemy-1.4-compatibility
Sep 17, 2026
Merged

vgvoleg merged 1 commit into
mainfrom
sqlalchemy-1.4-compatibility

Conversation

@vgvoleg

@vgvoleg vgvoleg commented Sep 15, 2026

Copy link
Copy Markdown
Member

Add full SQLAlchemy 1.4 compatibility across compiler behavior, datetime literals, transactions, and dialect-specific tests.

Pin the tested SQLAlchemy releases in separate tox environments and run both unit and full dialect suites for 1.4 and 2.0 in CI. Update the documentation to describe both supported release lines.

@vgvoleg vgvoleg added the SLO Run SLO checks label Sep 15, 2026
@github-actions

Copy link
Copy Markdown

🌋 SLO Test Results

🟢 3 workload(s) tested — All thresholds passed

Commit: 8941767 · View run

Workload Thresholds Duration Report
orm 🟢 OK 10m 6s 📄 Report
tx 🟢 OK 10m 5s 📄 Report
core 🟢 OK 10m 6s 📄 Report

Generated by ydb-slo-action

@github-actions github-actions Bot removed the SLO Run SLO checks label Sep 15, 2026
@vgvoleg
vgvoleg requested a balanced review from Copilot September 15, 2026 11:03

Copilot AI 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.

🟢 Approval recommended

The compatibility changes are consistently implemented, documented, and covered by version-specific unit and integration suites.

Pull request overview

Adds comprehensive SQLAlchemy 1.4 compatibility while preserving SQLAlchemy 2.0 behavior.

Changes:

  • Backports compiler, literal, bind-type, and transaction compatibility.
  • Runs unit and integration suites against pinned 1.4 and 2.0 releases.
  • Updates compatibility documentation and release notes.
File summaries
File Description
ydb_sqlalchemy/sqlalchemy/test_sqlalchemy.py Expands compiler and type tests.
ydb_sqlalchemy/sqlalchemy/datetime_types.py Adds portable datetime literal rendering.
ydb_sqlalchemy/sqlalchemy/compiler/sa14.py Implements missing 1.4 compiler behavior.
ydb_sqlalchemy/sqlalchemy/compiler/base.py Improves bind-type inference and nullable handling.
tox.ini Adds pinned SQLAlchemy 1.4 environments.
tests/integration/test_suite.py Adapts compliance tests for both versions.
tests/integration/test_core.py Updates transaction and query compatibility tests.
tests/integration/test_alembic.py Makes commit behavior compatible with 1.4.
test-requirements.txt Moves SQLAlchemy pinning into tox.
docs/installation.rst Documents supported release lines.
docs/index.rst Updates compatibility overview.
CHANGELOG.md Records SQLAlchemy 1.4 support.
.github/workflows/tests.yml Runs both version suites in CI.
Review details
  • Files reviewed: 13/13 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vgvoleg
vgvoleg merged commit d2f6760 into main Sep 17, 2026
14 checks passed
@vgvoleg
vgvoleg deleted the sqlalchemy-1.4-compatibility branch September 17, 2026 09:03
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.

2 participants