jeudi 22 juin 2017

Hive: How to add if-then conditional statement before creating table

Using Hive, I want to create a if-then workflow, which is something like this:

IF table2 EXISTS then:
CREATE TABLE table3 AS ...

ELSE: 
CREATE TABLE table4 AS ..(using table2)

Aucun commentaire:

Enregistrer un commentaire