[ 
https://issues.apache.org/jira/browse/HIVE-30185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Denys Kuzmenko updated HIVE-30185:
----------------------------------
    Description: 
Repro:
1. Create an Iceberg v3 table without payload; insert rows (snapshot S1).
2. ALTER TABLE t ADD COLUMNS (payload variant); insert rows.
3. SELECT id FROM t FOR SYSTEM_VERSION AS OF <S1> WHERE variant_get(payload, 
'$.event_id', 'int') = 15
   - vectorized: HiveException: Failed to extract variant: MALFORMED_VARIANT;
   - non-vectorized: an empty result.
Expected: an empty result in both modes, because the column is NULL for every 
row of S1.

> Iceberg: vectorized time travel to a snapshot from before a VARIANT column 
> was added fails with MALFORMED_VARIANT
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-30185
>                 URL: https://issues.apache.org/jira/browse/HIVE-30185
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Denys Kuzmenko
>            Priority: Major
>
> Repro:
> 1. Create an Iceberg v3 table without payload; insert rows (snapshot S1).
> 2. ALTER TABLE t ADD COLUMNS (payload variant); insert rows.
> 3. SELECT id FROM t FOR SYSTEM_VERSION AS OF <S1> WHERE variant_get(payload, 
> '$.event_id', 'int') = 15
>    - vectorized: HiveException: Failed to extract variant: MALFORMED_VARIANT;
>    - non-vectorized: an empty result.
> Expected: an empty result in both modes, because the column is NULL for every 
> row of S1.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to