Jan 12 in Big Data | Hadoop

Q: What Collection/Complex data types are supported by Hive?

1 Answer

Jan 12

Hive supports following Complex/Collection data types:

1. Map: This is a collection of key value pairs. We can specify [key] to get the value stored at key in the collection.

2. Array: This  is an index based ordered sequence of


values in a collection. We can access it with an index like [i] where i is the location of an element.

3. Struct: This is a record type that has other named fields inside. It is similar to struct in C or object in Java.

4. Uniontype: This is similar to Union in C. Since support for this data type is not fully available, we should not use it.


Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Jan 10 in Big Data | Hadoop
Jul 24, 2019 in Azure
Jun 7 in Hive