hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Behm (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-11622) Creating an Avro table with a complex map-typed column leads to incorrect column type.
Date Sat, 22 Aug 2015 06:06:45 GMT
Alexander Behm created HIVE-11622:
-------------------------------------

             Summary: Creating an Avro table with a complex map-typed column leads to incorrect
column type.
                 Key: HIVE-11622
                 URL: https://issues.apache.org/jira/browse/HIVE-11622
             Project: Hive
          Issue Type: Bug
          Components: Database/Schema
    Affects Versions: 1.1.0
            Reporter: Alexander Behm


In the following CREATE TABLE the following map-typed column leads to the wrong type. I suspect
some problem with inferring the Avro schema from the column definitions, but I am not sure.

Reproduction:
{code}
hive> create table t (c map<string,array<int>>) stored as avro;
OK
Time taken: 0.101 seconds
hive> desc t;
OK
c                   	array<map<string,int>>	from deserializer   
Time taken: 0.135 seconds, Fetched: 1 row(s)
{code}

Note how the type shown in DESCRIBE is not the type originally passed in the CREATE TABLE.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message