Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Hive do Spark-like flatmap/map operations?

Tags:

sql

hive

Over the past few months, I've been using Spark to do my data clean stuff. For most cases, it's just filtering or some simple aggregation.

Recently, I found that large portion of the tasks can be done in Hive using HQL. But I found that it's difficult to do map, especially flatmap using Hive.

In a sense, select -like operations are map operations, but what if flatmap ?

Can someone give some tips ?

Thanks.

like image 548
Shu Avatar asked Jan 27 '26 21:01

Shu


1 Answers

In a limited way lateral view (https://cwiki.apache.org/confluence/display/Hive/LanguageManual+LateralView) can do a flatmap.

like image 131
nessa.gp Avatar answered Jan 30 '26 14:01

nessa.gp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!