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

Correct DDL to DROP MATERIALIZED VIEW in Iceberg Connector test #11624

Closed
wants to merge 1 commit into from

Conversation

Riddle4045
Copy link
Member

Description

Related Issue: #9129
Related Pull Request: #11555

…o remove the materizlied views in Iceberg connector tests
@cla-bot cla-bot bot added the cla-signed label Mar 23, 2022
for (MaterializedRow row : baseResult.getMaterializedRows()) {
assertUpdate("DROP TABLE IF EXISTS " + row.getField(0).toString());
assertUpdate("DROP MATERIALIZED VIEW IF EXISTS " + row.getField(0).toString());
Copy link
Member

Choose a reason for hiding this comment

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

The storage table is a table, so the previous code, using DROP TABLE, seemed correct.
However, IMO this cleanup method is not needed at all --- #11626

Copy link
Member Author

Choose a reason for hiding this comment

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

@findepi, I can disregard this request in that case.

This review came from the discussion in #11555 (comment), I am fixing the issue #9129 to raise proper exception. Do you mean the DROP TABLE IF EXISTS should exhibit same behavior for materialized views and tables?

cc @findinpath

Copy link
Member

Choose a reason for hiding this comment

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

"storage table" is a table, not a materialized view

@Riddle4045 Riddle4045 closed this Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants