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

Denys Kuzmenko updated HIVE-29184:
----------------------------------
    Summary: Add basic Variant Type support in Hive  (was:  Introduce Variant 
data type in Hive)

> Add basic Variant Type support in Hive
> --------------------------------------
>
>                 Key: HIVE-29184
>                 URL: https://issues.apache.org/jira/browse/HIVE-29184
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Denys Kuzmenko
>            Priority: Major
>
> Introduces the Variant data structure to represent semi-structured data and a 
> new SQL type variant
> {code:java}
> class BinaryVariant implements Variant {
>     private final byte[] value;
>     private final byte[] metadata;
>     // The variant value doesn't use the whole `value` binary, but starts 
> from its `pos` index and
>     // spans a size of `valueSize(value, pos)`. This design avoids frequent 
> copies of the value
>     // binary when reading a sub-variant in the array/object element.
>     private final int pos;
> }
> {code}



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

Reply via email to