[
https://issues.apache.org/jira/browse/IMPALA-12763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17811861#comment-17811861
]
Daniel Becker commented on IMPALA-12763:
----------------------------------------
The problem doesn't occur if the struct contains an INT, not a STRING, so it
may be related to var-len types, although it occurs with small strings too.
Normally, union of structs is not supported yet (see IMPALA-10752), but if the
struct is in an array it is allowed now. This was probably not intentional and
it leads to the above error so we should disable structs in unions completely,
including embedded structs.
> Union with string struct crashes in ASAN
> ----------------------------------------
>
> Key: IMPALA-12763
> URL: https://issues.apache.org/jira/browse/IMPALA-12763
> Project: IMPALA
> Issue Type: Bug
> Components: Backend
> Reporter: Daniel Becker
> Priority: Major
>
> In ASAN builds if we UNION ALL an array containing a struct of a string with
> itself Impala crashes. This is how to reproduce it:
> In Hive:
>
> {code:java}
> create table su (arr ARRAY<STRUCT<s: STRING>>) stored as parquet;
> insert into su values (array(named_struct("s", "A")));
> {code}
> In Impala:
> {code:java}
> select 1, arr from su
> union all select 2, arr from su;{code}
> The ASAN error message indicates a heap-use-after-free.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]