hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunderlin, Mark" <>
Subject Size of a Hive Map column in characters!
Date Fri, 06 Dec 2013 13:42:11 GMT
The size(map) function is defined as follows: size(Map<K.V>) 	Returns the number of elements
in the map type

What if I want the total size of the map for that row?  This doesn't work: select length(MAP);

How can I get the total size of a map column in either bytes or characters?
Mark E. Sunderlin
Data Architect     | AOL NETWORKS BDM
P: 703-265-6935 | C: 540-327-6222 | AIM: MESunderlin
22000 AOL Way,  Dulles, VA  20166

View raw message