[
https://issues.apache.org/jira/browse/HIVE-29544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HIVE-29544:
----------------------------------
Labels: pull-request-available (was: )
> Fix Vectorized Parquet reading Struct columns with all fields null
> ------------------------------------------------------------------
>
> Key: HIVE-29544
> URL: https://issues.apache.org/jira/browse/HIVE-29544
> Project: Hive
> Issue Type: Bug
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
>
> If in vectorized mode. The parquet file has a struct field which has all the
> fields null, reading it returns the entire struct as null, instead the values
> as null for the struct.
> Repro
> {noformat}
> create table test (id int, st struct<x:int, y:int>) stored as parquet;
> insert into test values (1, named_struct('x', CAST(NULL AS INT), 'y',
> CAST(NULL AS INT)));
> {noformat}
> With vectorization on:
> {noformat}
> select * from test;
> +----------+----------+
> | test.id | test.st |
> +----------+----------+
> | 1 | NULL |
> +----------+----------+
> {noformat}
> With vectorization off
> {noformat}
> select * from test;
> +----------+----------------------+
> | test.id | test.st |
> +----------+----------------------+
> | 1 | {"x":null,"y":null} |
> +----------+----------------------+
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)