Skip to content

Enable SQLAlchemy update and delete compliance tests - #750

Merged
laughingman7743 merged 2 commits into
masterfrom
test/enable-sqla-update-delete
Aug 11, 2026
Merged

Enable SQLAlchemy update and delete compliance tests#750
laughingman7743 merged 2 commits into
masterfrom
test/enable-sqla-update-delete

Conversation

@laughingman7743

@laughingman7743 laughingman7743 commented Aug 11, 2026

Copy link
Copy Markdown
Member

WHAT

Re-enable the upstream SQLAlchemy SimpleUpdateDeleteTest for Athena Iceberg tables.
Return no DB API description for INSERT, UPDATE, DELETE, and MERGE statements while preserving their UpdateCount as rowcount.
Add regression assertions for the four DML statement types.

Related to #736.

WHY

Athena returns DML UpdateCount responses with result-set metadata even though the statements do not return rows.
PyAthena exposed that metadata as cursor.description, so SQLAlchemy classified UPDATE and DELETE results as row-returning results.
Suppressing the DML description aligns the cursor with DB API behavior and allows the standard SQLAlchemy update and delete tests to run without weakening their assertions.

TESTING

  • just lint
  • SQLAlchemy SimpleUpdateDeleteTest update and delete cases: 2 passed.
  • Existing PyAthena Iceberg cursor regression test: 1 passed.
  • Tests used the local AWS configuration from the gitignored .env file and a single xdist worker.

@laughingman7743
laughingman7743 marked this pull request as ready for review August 11, 2026 06:43
@laughingman7743
laughingman7743 merged commit e471e10 into master Aug 11, 2026
21 of 26 checks passed
@laughingman7743
laughingman7743 deleted the test/enable-sqla-update-delete branch August 11, 2026 06:44
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.

1 participant