Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
If materialized view rewriting fails because an unsupported SQL clause or operator is used we got an error message like this:
FAILED: SemanticException Cannot enable automatic rewriting for materialized view. Unsupported RelNode type HiveSortExchange encountered in the query plan
This refers to the HiveSortExchange operator. This is introduced to CBO plan if the statement has sort by clause which may not clear for the user.
create materialized view cmv_mat_view as select a, b, c from cmv_basetable sort by a;
Attachments
Attachments
Issue Links
- is related to
-
HIVE-22785 Update/delete/merge statements not optimized through CBO
- Closed
- links to