hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristinn RĂșnarsson <>
Subject Error when querying map data type in Hive
Date Wed, 20 Jul 2016 11:31:39 GMT

I have a table that is created after an Avro schema. This Avro-schema
contains two map type columns defined like this in the schema:

{"name": "dimensions", "type": ["null",{"type": "map", "values":
{"name": "metrics", "type": ["null",{"type": "map", "values": "double"}]},

The table is created without any issues and I am able to load my data
(stored in parquet files) to the table. Querying any other column of the
table is fine, but when the map columns are included I get an exception:

"Failed with exception
java.lang.ClassCastException: cannot be cast to"

The data in these columns is a map that can contain different number of
items in each row. The data looks like this:

"{"section":"Sitteplasser","delivery_type":"3","event_type":"Musikk"} "

Is this a known bug in the hive system or am I doing something that is
causing this?

View raw message