In my Hive SQL script I want to do:
IF {$user_choice = 1} SELECT a,b,c FROM Table1; ELSE SELECT d,e,f FROM Table1;
Where user_choice is a parameter that Hive prompts for when the query is run.
What's the right syntax for this please? Or is there another way to achieve the same thing if I'm thinking about it wrong?
I'm trying to do this via the Hue editor, if that makes a difference. Thanks