hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (Jira)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-23130) User friendly error message when MV rewriting fails
Date Fri, 03 Apr 2020 23:29:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-23130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesus Camacho Rodriguez updated HIVE-23130:
-------------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

Pushed to master, thanks [~kkasa]!

> 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
>             Fix For: 4.0.0
>
>         Attachments: HIVE-23130.1.patch, HIVE-23130.1.patch, HIVE-23130.2.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)

Mime
View raw message