Skip to content

[KYUUBI #7674] Fix flaky PyHive SQLAlchemy insert tests - #7675

Open
wForget wants to merge 1 commit into
apache:masterfrom
wForget:KYUUBI-7674
Open

[KYUUBI #7674] Fix flaky PyHive SQLAlchemy insert tests#7675
wForget wants to merge 1 commit into
apache:masterfrom
wForget:KYUUBI-7674

Conversation

@wForget

@wForget wForget commented Aug 28, 2026

Copy link
Copy Markdown
Member

Why are the changes needed?

The Python test suite runs with multiple pytest-xdist workers. test_insert_select and test_insert_values used the same pyhive_test_database.insert_test table, and both tests dropped and recreated it.

When the tests ran concurrently, one test could drop the table while the other was inserting or querying data, causing intermittent table not found failures.

This patch assigns a dedicated table name to each test to prevent the collision.

Closes #7674.

How was this patch tested?

Existing test cases.

Was this patch assisted by generative AI tooling?

Assisted-by: OpenAI Codex (GPT-5)

@wForget wForget self-assigned this Aug 28, 2026

@wangzhigang1999 wangzhigang1999 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.

LGTM,Thanks!

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.

Flaky Test: TestSqlAlchemyHive::test_insert_select

3 participants