0 votes
in Big Data | Hadoop by
What Collection/Complex data types are supported by Hive?

1 Answer

0 votes

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.


Related questions

0 votes
asked Apr 24, 2020 in Big Data | Hadoop by Hodge
0 votes
asked Apr 8, 2020 in Big Data | Hadoop by GeorgeBell