Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
Description
Create a database, add a table and then a materialized view that depends on the table. Then drop the database with cascade set. Sometimes this will fail because when HiveMetaStore.drop_database_core goes to drop all of the tables it may drop the base table before the materialized view, which will cause an integrity constraint violation in the RDBMS. To resolve this that method should change to fetch and drop materialized views before tables.
cc [~jcamachorodriguez]
Attachments
Attachments
Issue Links
- relates to
-
HIVE-18620 Improve error message while dropping a table that is part of a materialized view
- Closed