Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recursive query in Hive

Hive support with clause, but hive does not support Recursive Queries.
In relational databases, there is some recursive function, stored procedure to do recursive query but hive does not support stored procedures and recursive function. how we can achieve recursive query in hive?

like image 940
Kishore Avatar asked Aug 04 '16 11:08

Kishore


1 Answers

You can set two property as true to have recursive queries in hive session

hive> set mapred.input.dir.recursive = true;

hive> set hive.mapred.supports.subdirectories = true;

These two values works in conjunction.

like image 113
Nitesh Kataria Avatar answered Sep 24 '22 05:09

Nitesh Kataria