Reputation: 1
SELECT peridle, CPU
FROM (SELECT MAX(peridle) FROM try2);
While executing this query in hive I am getting following error
Parse Error: line 1:47 cannot recognize input near 'select' 'MAX' '(' in expression specification
Please suggest a solution how to use aggregate functions in hive subquery
Upvotes: 0
Views: 1146
Reputation: 2725
At least two things need to be fixed here:
peridle
or CPU
from the sub-query, yet you are trying to select them.);
at the end to ) x;
(or however you want to call it).Upvotes: 1