Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate schemas in BaseSharedMetastoreTest #21909

Merged
merged 1 commit into from May 14, 2024
Merged

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented May 10, 2024

Description

Some tests expect only region and nation tables exist in the schema
Fixes #21962

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label May 10, 2024

assertUpdate("CREATE SCHEMA " + schemaName);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe let's fix or isolate testShowTables instead, rather than require every test to create new schema.

testShowTables can be isolated at execution, or by creating a new schema in that test
or fixed by relaxing assertions

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated the tests to create 2 schemas in createQueryRunner because other tests (e.g. testReadInformationSchema, testShowSchemas) also depend on the existing schema.

@github-actions github-actions bot added the iceberg Iceberg connector label May 10, 2024
@ebyhr ebyhr force-pushed the ebi/iceberg-fix-test branch 2 times, most recently from 814b4eb to 4a7778b Compare May 13, 2024 02:36
@ebyhr ebyhr changed the title Use different schema in Iceberg migrate test Separate schemas in BaseSharedMetastoreTest May 13, 2024
Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

skimmed only

Some tests expect only region and nation
tables exist in the schema.
@ebyhr ebyhr merged commit 212455d into master May 14, 2024
38 of 44 checks passed
@ebyhr ebyhr deleted the ebi/iceberg-fix-test branch May 14, 2024 22:51
@github-actions github-actions bot added this to the 448 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

Flaky test TestSharedHiveMetastore.testReadInformationSchema
2 participants