I've totally new to hive. I've able to run non-nested SQL queries without a problem. However, I'm unable to execute the below query.
SELECT E_DATE,
CLIENT,
INS,
(SELECT SUM(time)
FROM mytable b
WHERE a.E_DATE = b.E_DATE
AND a.INS = b.INS
AND b.CLIENT = 'comA') TOTAL_TIME
FROM mytable a
GROUP BY E_DATE,CLIENT,INS
I get the error FAILED: ParseException line 4:8 cannot recognize input near 'SELECT' 'SUM' '(' in expression specification
SELECTstatement. cwiki.apache.org/confluence/display/Hive/… - gobrewers14a4go?), scientific notation, and there's words for output ... I have no idea what the output should be. - gobrewers14