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 "Daniel Becker (Jira)" <ji...@apache.org> on 2022/11/11 21:29:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Daniel Becker updated IMPALA-11722:
-----------------------------------
    Description: 
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.

  was:
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.


> 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
>            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