[
https://issues.apache.org/jira/browse/HIVE-22956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17049682#comment-17049682
]
Jesus Camacho Rodriguez commented on HIVE-22956:
------------------------------------------------
[~mgergely], could you check the patch in HIVE-22566 ? It seems to tackle same
problem.
1) Yes, it is as you describe it above, views are not an issue.
2) I think it is OK (and even recommended) to state clearly the fully qualified
name of the MVs that are preventing dropping the table in the error message.
> Fix checking if a table is used by a materialized view before dropping
> ----------------------------------------------------------------------
>
> Key: HIVE-22956
> URL: https://issues.apache.org/jira/browse/HIVE-22956
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Reporter: Miklos Gergely
> Assignee: Miklos Gergely
> Priority: Major
> Fix For: 4.0.0
>
> Attachments: HIVE-22956.01.patch, HIVE-22956.02.patch
>
>
> Currently when a table is dropped we are deriving if it was used by any
> materialized views from the error message got from the Metastore. Instead of
> this we should check it in advance, from the HiveMaterializedViewsRegistry.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)