kasakrisz opened a new pull request #3005:
URL: https://github.com/apache/hive/pull/3005


   ### What changes were proposed in this pull request?
   Check whether the current command is a create view command when trying to 
apply materialized view rewrite by exact sql text match.
   
   ### Why are the changes needed?
   Rewriting Views to MV scans are not supported currently.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. Such views can be created and no error messages given.
   
   ### How was this patch tested?
   ```
   mvn test -Dtest.output.overwrite -DskipSparkTests 
-Dtest=TestMiniLlapLocalCliDriver 
-Dqfile=create_view_when_mv_exists.q,create_view_when_mv_exists2.q -pl 
itests/qtest -Pitests
   ```


-- 
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