Is it possible to insert a new row of data in a case statement in Hive.
I have a basic 'team' table, with the following fields (team_id,fname,lname).
This is what I am trying to run,
SELECT team_id,fname,lname,
CASE WHEN team_id = 2 THEN insert into team values (20, 'billy', 'bob'); ELSE "" END team_id
FROM team order by team_id;
Error ParseException line 2:29 Failed to recognize predicate 'insert'. Failed rule: 'identifier' in table or column identifier
If anyone could provide and info or solution, it would be great
Frostie