You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by "Sunderlin, Mark" <ma...@teamaol.com> on 2013/12/06 14:42:11 UTC

Size of a Hive Map column in characters!

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