Home >> Big Data Hadoop >> Hive Explode in Big Data Hadoop

Hive Explode in Big Data Hadoop

Explode in Hive is used to convert complex data types into desired table formats. explode UDTF basically emits all the elements in an array into multiple rows.

It gives lateral view.

Explode() takes in an array (or a map) as an input and gives the elements of the array (map) as separate rows for output.

create table test (

    item MAP<STRING, STRING>

);

Want to iterate all the items inside the MAP as key-value pairs.Hive offered such function called explode():

Ex-SELECT explode(myCol) AS myNewCol FROM test;

Post Your Comment

Next Questions
Hive SORT BY vs ORDER By
HIve DISTRIBUTE BY vs CLUSTER BY
Hive HUE Editor
Hive vs Impala
Hive Data & Schema
Hive Partitioning
Hive Bucketing
Hive File Format
Hive Engine
Hive Vectorization
Hive User Defined Function
Hive How to Write a User Defined Function
Hive User Defined Aggregate Functions
Hive Performance Tuning
Hive Rank and Over
Hive SERDE
Hive Directed Acyclic Graph
Hive with Sqoop
How to save hive query output in csv using python
Hive How To Convert External table to Internal table or vice-versa
Hive What is User Defined Function and User Defined Aggregate Function
What are the different components of a Hive architecture
How can you prevent a large job from running for a long time
What is a Hive Metastore
Explain about the different types of join in Hive

Copyright ©2022 coderraj.com. All Rights Reserved.