You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/11/22 23:04:00 UTC

[jira] [Commented] (IMPALA-11722) Wrong error message when unsupported complex type comes from * expression

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

ASF subversion and git services commented on IMPALA-11722:
----------------------------------------------------------

Commit adeb7fc0580d2e04235f2b58f0a4a97820a1c477 in impala's branch refs/heads/master from Peter Rozsa
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=adeb7fc05 ]

IMPALA-11722: Wrong error message when unsupported complex type comes from * expression

Adds the missing check for unsupported struct fields when SlotRef
is created from an expanded path from star expression. For example:
'select * from functional_orc_def.complextypestbl;' reports
NullPointerException instead of reporting an AnalysisException: 'Struct
containing a collection type is not allowed in the select list.'
Now the struct condition checks are placed at every callsite.

Analyze tests added for erroneous queries.

Change-Id: I43ffe5d56740b36c93cf4401be871377d3168a4c
Reviewed-on: http://gerrit.cloudera.org:8080/19261
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Wrong error message when unsupported complex type comes from * expression
> -------------------------------------------------------------------------
>
>                 Key: IMPALA-11722
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11722
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>            Reporter: Daniel Becker
>            Assignee: Peter Rozsa
>            Priority: Major
>
> The following query fails with a NullPointerException:
> {code:java}
> select * from functional_orc_def.complextypestbl;
> ERROR: NullPointerException: null
> {code}
> The table contains a struct, {{{}nested_struct{}}}, which is not supported yet because it contains collections. If the columns are listed explicitly, the error message is the correct one:
> {code:java}
> select id, int_array, int_array_array, int_map, int_map_array, nested_struct from functional_orc_def.complextypestbl;
> ERROR: AnalysisException: Struct containing a collection type is not allowed in the select list.{code}
> The same error message should be returned in the select * case.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org