Search code examples
impala

Does impala work with nested avro structures?


Assuming I have the following:

"properties" : {
"prop1": "propval",
"prop2": 5
"prop3": {"subprop1":"subpropval1","subprop2":"subpropval2"}
}
"testlist" : [
{"key": "item1", "key2": "value1"},
{"key": "item1", "key2": "value1"}
{"key": "item1", "key2": "value1"}
]

Is this loadable into Impala and queryable without having to specify schema? Or does it have to be a "flat" avro schema without lists/nested structure?


Solution

  • Nested types in avro will be available in Impala 2.2: https://issues.cloudera.org/browse/IMPALA-345