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

Ignore invalid views when listing in Hive connector #10913

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

electrum
Copy link
Member

@electrum electrum commented Feb 2, 2022

No description provided.

@cla-bot cla-bot bot added the cla-signed label Feb 2, 2022
@electrum electrum requested a review from dain February 2, 2022 19:50
@@ -2371,6 +2372,9 @@ public void dropView(ConnectorSession session, SchemaTableName viewName)
if (e.getErrorCode().equals(HIVE_VIEW_TRANSLATION_ERROR.toErrorCode())) {
// Ignore hive views for which translation fails
}
else if (e.getErrorCode().equals(HIVE_INVALID_VIEW_DATA.toErrorCode())) {
// Ignore views that are not valid
Copy link
Member

Choose a reason for hiding this comment

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

In this entire block we should be logging (ideally at WARN otherwise DEBUG).

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure. This means every metadata call will log potentially many times, flooding the logs. You'll see the actual error if you try to query the view.

@electrum electrum merged commit 8df789c into trinodb:master Feb 4, 2022
@electrum electrum deleted the hive-view-list branch February 4, 2022 05:24
@github-actions github-actions bot added this to the 371 milestone Feb 4, 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.

3 participants