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

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

Commit adeb7fc0580d2e04235f2b58f0a4a97820a1c477 in impala's branch 
refs/heads/branch-4.2.0 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 <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> 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
>             Fix For: Impala 4.2.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to