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

Test Iceberg operations for information_schema.columns #18300

Conversation

findepi
Copy link
Member

@findepi findepi commented Jul 14, 2023

Extracted from #18299

@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Jul 14, 2023
@findepi findepi requested review from ebyhr and alexjo2144 July 14, 2023 17:44
@cla-bot cla-bot bot added the cla-signed label Jul 14, 2023
ImmutableMultiset.builder()
.add(GET_ALL_DATABASES)
.add(GET_ALL_TABLES_FROM_DATABASE)
.addCopies(GET_TABLE, 3)
Copy link
Member

Choose a reason for hiding this comment

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

Small improvement might be to have one table that does not match the LIKE string and show that it does not need a GET_TABLE call.


assertFileSystemAccesses("SELECT * FROM information_schema.columns WHERE table_name LIKE 'test_select_i_s_columns%'",
ImmutableMultiset.<FileOperation>builder()
.addCopies(new FileOperation(METADATA_JSON, INPUT_FILE_NEW_STREAM), 3)
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to show that if you have a table that does not match the filter we don't grab the metadata json file. Similarly a predicate on table_schema should filter the same way.

@github-actions github-actions bot added the iceberg Iceberg connector label Jul 15, 2023
@findepi findepi force-pushed the findepi/test-iceberg-operations-for-information-schema-columns-024444 branch from b923065 to 2210920 Compare July 17, 2023 10:45
@findepi findepi merged commit 82e37ac into trinodb:master Jul 17, 2023
@findepi findepi deleted the findepi/test-iceberg-operations-for-information-schema-columns-024444 branch July 17, 2023 10:47
@github-actions github-actions bot added this to the 423 milestone Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed iceberg Iceberg connector no-release-notes This pull request does not require release notes entry test
Development

Successfully merging this pull request may close these issues.

3 participants