[ 
https://issues.apache.org/jira/browse/HIVE-23130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074295#comment-17074295
 ] 

Hive QA commented on HIVE-23130:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12998681/HIVE-23130.1.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 18167 tests 
executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[materialized_view_no_cbo_rewrite_2]
 (batchId=107)
{noformat}

Test results: 
https://builds.apache.org/job/PreCommit-HIVE-Build/21416/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/21416/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-21416/

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: 1 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12998681 - PreCommit-HIVE-Build

> User friendly error message when MV rewriting fails
> ---------------------------------------------------
>
>                 Key: HIVE-23130
>                 URL: https://issues.apache.org/jira/browse/HIVE-23130
>             Project: Hive
>          Issue Type: Task
>          Components: CBO
>            Reporter: Krisztian Kasa
>            Assignee: Krisztian Kasa
>            Priority: Minor
>         Attachments: HIVE-23130.1.patch, HIVE-23130.1.patch
>
>
> If materialized view rewriting fails because an unsupported SQL clause or 
> operator is used we got an error message like this:
> {code}
> FAILED: SemanticException Cannot enable automatic rewriting for materialized 
> view. Unsupported RelNode type HiveSortExchange encountered in the query plan
> {code}
> 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.
> {code}
> create materialized view cmv_mat_view as select a, b, c from cmv_basetable 
> sort by a;
> {code} 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to