kasakrisz opened a new pull request #2697: URL: https://github.com/apache/hive/pull/2697
### What changes were proposed in this pull request? When validating view/materialized view instead of checking the tables in the top QB object check all TableScan operators for temp tables and MVs ### Why are the changes needed? Checking the top QB object is often not enough: subqueries may contain MV and temp table scans. ### Does this PR introduce _any_ user-facing change? Yes. At create [materialized]view if view definition has subqueries referencing temp tables and/or materialized views an error message is printed. ### How was this patch tested? ``` mvn test -Dtest.output.overwrite -DskipSparkTests -Dtest=TestNegativeLlapLocalCliDriver -Dqfile=materialized_view_create_failure.q,create_view_failure11.q,create_view_failure12.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]
