kasakrisz commented on code in PR #4951:
URL: https://github.com/apache/hive/pull/4951#discussion_r1434269899


##########
ql/src/test/results/clientpositive/llap/materialized_view_no_cbo_rewrite.q.out:
##########
@@ -36,4 +36,8 @@ PREHOOK: query: alter materialized view cmv_mat_view enable 
rewrite
 PREHOOK: type: ALTER_MATERIALIZED_VIEW_REWRITE
 PREHOOK: Input: default@cmv_mat_view
 PREHOOK: Output: default@cmv_mat_view
-FAILED: Execution Error, return code 40000 from 
org.apache.hadoop.hive.ql.ddl.DDLTask. 
org.apache.hadoop.hive.ql.metadata.HiveException: Cannot enable rewriting for 
materialized view. Statement has unsupported clause: sort by.
+Only query text based automatic rewriting is available for materialized view. 
Statement has unsupported clause: sort by.

Review Comment:
   Actually these capabilities already exists if rewrite is not disabled at 
creation time. However Alter doesn't allow these. This patch tries to improve 
Alter too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to