HIVE Lateral View Explode

The "lateral view explode" construct in HIVE allows optimizing  storage for data where only one column values differ for multiple records.  It allows collapsing all such records into a single record, with the column having different values in a array or comma separated list.  By using lateral view explode, you can always generate a exploded view of the data.

HIVE supports "lateral view explode" construct but Impala  does not. In Impala you have to achieve the same using complex types like ARRAY.

http://www.ericlin.me/2013/09/how-to-use-hive-lateral-view-in-your-query/

http://linehrr.blogspot.com/2013/09/how-to-use-lateral-view-explode.html




Comments

Popular posts from this blog

SQL

Analytics

HIVE