[ 
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:03 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. The collection should also contain 
variable length types 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.

Also specifically check structs containing collections, because that was 
enabled later in the sorting tuple as well.

> 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-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to