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 2024/01/31 15:03:00 UTC
[jira] [Comment Edited] (IMPALA-10752) Support for UNION two structs
[ https://issues.apache.org/jira/browse/IMPALA-10752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17811864#comment-17811864 ]
Daniel Becker edited comment on IMPALA-10752 at 1/31/24 3:02 PM:
-----------------------------------------------------------------
When implementing this, pay special attention to variable length types in structs (long strings and collections) because they may cause problems, see IMPALA-12763.
Also specifically check structs containing collections, because that was enabled later in the sorting tuple as well.
was (Author: daniel.becker):
When implementing this, pay special attention to variable length types in structs (long strings and collections) because they may cause problems, see IMPALA-12763.
> Support for UNION two structs
> -----------------------------
>
> Key: IMPALA-10752
> URL: https://issues.apache.org/jira/browse/IMPALA-10752
> Project: IMPALA
> Issue Type: New Feature
> Components: Backend, Frontend
> Reporter: Gabor Kaszab
> Priority: Major
>
> {code:java}
> select id, tiny_struct from complextypes_structs
> union all
> select id, tiny_struct from complextypes_structs;
> {code}
> Result is the following error:
> {code:java}
> ERROR: AnalysisException: Incompatible return types 'STRUCT<b:BOOLEAN>' and 'STRUCT<b:BOOLEAN>' of exprs 'tiny_struct' and 'tiny_struct'.
> {code}
> where complextypes_structs is the following (note, it is same with parquet):
> {code:java}
> CREATE TABLE complextypes_structs (
> id int,
> tiny_struct struct<b:boolean>,
> small_struct struct<i:int, s:string>
> ) STORED AS ORC;
> {code}
--
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