Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Extra packages:

| Package | Install command | Version |
|---------------|-----------------------------------------|----------|
| SQLAlchemy | `pip install PyAthena[SQLAlchemy]` | >=2.0.23 |
| AioSQLAlchemy | `pip install PyAthena[AioSQLAlchemy]` | >=2.0.23 |
| SQLAlchemy | `pip install PyAthena[SQLAlchemy]` | >=2.0.44 |
| AioSQLAlchemy | `pip install PyAthena[AioSQLAlchemy]` | >=2.0.44 |
| pandas | `pip install PyAthena[Pandas]` | >=3.0.0 |
| Arrow | `pip install PyAthena[Arrow]` | >=22.0.0 |
| Polars | `pip install PyAthena[Polars]` | >=1.39.0 |
Expand Down
4 changes: 2 additions & 2 deletions docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Extra packages:

| Package | Install command | Version |
|---------------|-----------------------------------------|----------|
| SQLAlchemy | `pip install PyAthena[SQLAlchemy]` | >=2.0.23 |
| AioSQLAlchemy | `pip install PyAthena[AioSQLAlchemy]` | >=2.0.23 |
| SQLAlchemy | `pip install PyAthena[SQLAlchemy]` | >=2.0.44 |
| AioSQLAlchemy | `pip install PyAthena[AioSQLAlchemy]` | >=2.0.44 |
| pandas | `pip install PyAthena[Pandas]` | >=3.0.0 |
| Arrow | `pip install PyAthena[Arrow]` | >=22.0.0 |
| Polars | `pip install PyAthena[Polars]` | >=1.39.0 |
Expand Down
4 changes: 2 additions & 2 deletions docs/sqlalchemy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# SQLAlchemy

Install SQLAlchemy with `pip install "SQLAlchemy>=2.0.23"` or `pip install PyAthena[sqlalchemy]`.
Supported SQLAlchemy is 2.0.23 or higher.
Install SQLAlchemy with `pip install "SQLAlchemy>=2.0.44"` or `pip install PyAthena[sqlalchemy]`.
Supported SQLAlchemy is 2.0.44 or higher.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Self-review round 2 (claims, callers, operations), head 191dbe5.

Claims checked:

Existing callers: an environment pinned to SQLAlchemy 2.0.23-2.0.43 no longer resolves PyAthena 4.4.0 with the extras; the release-note line in the body covers it. 2.0.44 imports on Python 3.15.2, where 2.0.23 did not. No AWS request changes.

Docs: README, introduction and sqlalchemy.md state 2.0.44; no other prose names the old minimum.

Evidence limits: the compliance suites were not run at 2.0.44 (CI runs them at 2.0.46 when Ready). Findings: none.


For async support (`create_async_engine`), install with `pip install PyAthena[aiosqlalchemy]`.

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ awsathena = "pyathena.sqlalchemy.rest:AthenaRestDialect"
"awsathena.aios3fs" = "pyathena.aio.sqlalchemy.s3fs:AthenaAioS3FSDialect"

[project.optional-dependencies]
sqlalchemy = ["sqlalchemy>=2.0.23"]
sqlalchemy = ["sqlalchemy>=2.0.44"]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Self-review round 1 (behavior and implementation), head 191dbe5.

Inventory: the install requirement of the sqlalchemy/aiosqlalchemy extras and the dev group (pyproject.toml, the three uv.lock specifiers), and the stated minimum in README.md, docs/introduction.md, docs/sqlalchemy.md.

  • No other reference to 2.0.23-2.0.43 remains (git grep outside uv.lock, tox.ini and .github included).
  • 4.x has no SQLAlchemy version-conditional code in pyathena/sqlalchemy, pyathena/aio/sqlalchemy or the tests, so no branch becomes dead.
  • Locked SQLAlchemy stays 2.0.46; uv lock --locked passes with only the specifiers changed.
  • Behavior evidence: offline SQLAlchemy tests 2.0.23 11 failed / 2.0.44 591 passed / 2.0.52 7 failed (the [4.x] Take SQLAlchemy DDL options in connect_args from the first connection (adapted #1559) #1594 limitation).

Findings: none. Repairs: none.

aiosqlalchemy = [
"sqlalchemy[asyncio]>=2.0.23",
"sqlalchemy[asyncio]>=2.0.44",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Independent review (relayed): Codex CLI (codex exec -s read-only, default model/profile), static review only (no tests run by the reviewer).
Base a23d009, head 191dbe5; detached clean snapshot of the head, verified unchanged afterwards. The prompt had the literal diff and the review questions only (no PR number, description, or prior findings).

Covered: the sync and async dialects against SQLAlchemy 2.0.44 and 2.0.46 (compiler hooks, _rowcount, reflection interfaces, async adapters); README, docs, packaging metadata, .github/ workflows and the tox configuration in pyproject.toml; consistency of the three SQLAlchemy specifiers in pyproject.toml and uv.lock, and the locked 2.0.46.

Result: CLEAN. "I found no dialect API that requires a later release."

]
pandas = [
"pandas>=3.0.0",
Expand All @@ -89,7 +89,7 @@ polars = [

[dependency-groups]
dev = [
"sqlalchemy[asyncio]>=2.0.23",
"sqlalchemy[asyncio]>=2.0.44",
"pandas>=3.0.0",
"pyarrow>=22.0.0",
"polars>=1.39.0",
Expand Down
6 changes: 3 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.