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

Michael Smith resolved IMPALA-15468.
------------------------------------
    Fix Version/s: Impala 5.0.0
       Resolution: Fixed

> Calcite planner: Preserve analysis errors in view alias correction
> ------------------------------------------------------------------
>
>                 Key: IMPALA-15468
>                 URL: https://issues.apache.org/jira/browse/IMPALA-15468
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Aleksandr Efimov
>            Assignee: Aleksandr Efimov
>            Priority: Major
>             Fix For: Impala 5.0.0
>
>
> Calcite masks view validation errors with ClassCastException in 
> ViewAliasCorrector. For t(b BOOLEAN, ts TIMESTAMP): CREATE VIEW v_sum AS 
> SELECT q.n FROM (SELECT SUM(b) n FROM t) q; SELECT n FROM v_sum; Using 
> TRUNC(ts, 'DD') instead of SUM(b) gives the same crash. Direct expressions 
> produce normal AnalysisException. Alias correction assumes every SELECT item 
> is a qualified column with AS. The fix checks this shape and preserves 
> unaffected items during correction. Reproduced at 
> 2f022a5ca0fc99670bcf197a1f89016cdf78d114 without planner fallback. Five 
> baseline regressions fail with ClassCastException. With the fix, Java build 
> and 18 related Maven tests pass. Full upstream precommit and E2E are pending.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to