[ https://issues.apache.org/jira/browse/HIVE-18394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492000#comment-16492000 ]
Hive QA commented on HIVE-18394: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12925057/HIVE-18394.02.patch {color:green}SUCCESS:{color} +1 due to 26 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 16 failed/errored test(s), 14391 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[drop_table_used_by_mv] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_authorization_create_no_grant] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_authorization_create_no_select_perm] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_authorization_drop_other] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_authorization_no_select_perm] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_authorization_rebuild_no_grant] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_authorization_rebuild_other] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_delete] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_drop2] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_drop] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_insert] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_load] (batchId=96) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_no_transactional_rewrite] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_no_transactional_rewrite_2] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_replace_with_view] (batchId=97) org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_update] (batchId=97) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/11258/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/11258/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-11258/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 16 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12925057 - PreCommit-HIVE-Build > Materialized view: "Create Materialized View" should default to rewritable > ones > ------------------------------------------------------------------------------- > > Key: HIVE-18394 > URL: https://issues.apache.org/jira/browse/HIVE-18394 > Project: Hive > Issue Type: Improvement > Components: Materialized views > Reporter: Gopal V > Assignee: Jesus Camacho Rodriguez > Priority: Blocker > Labels: TODOC3.0 > Attachments: HIVE-18394.01.patch, HIVE-18394.02.patch, > HIVE-18394.patch > > > This is a usability ticket, since it is possible to end up creating > materialized views and realize that they need an additional flag to be picked > up by the optimizer to do rewrites to. > {code:sql} > create materialized view ca as select * from customer, customer_address where > c_current_addr_sk = ca_address_sk; > set hive.materializedview.rewriting=true; > select count(1) from customer, customer_address where c_current_addr_sk = > ca_address_sk; -- does not use materialized view > {code} > Needs another step > {code:sql} > alter materialized view ca enable rewrite; > {code} > And then, it kicks in > {code:sql} > select count(1) from customer, customer_address where c_current_addr_sk = > ca_address_sk; > OK > 12000000 > Time taken: 0.494 seconds, Fetched: 1 row(s) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)