hiveql - how to use subquery with aggregate function in hive -
select peridle, from CPU (choose from try2 MAX (peridle)); I am getting the error when executing this question in the hive Parse error: Line 1:47 'Selection' 'Max' can not recognize the input. (In the expression specification
Please suggest a solution to use the total functions in the haw subquiry
At least two things need to be fixed here:
- You can use the
peridle
or CPU
sub- From the query, you are still trying to select them. - The hive needs to nick sub-questions, even if you do not reference the alias. You can call it <
);
end ) x;
(or you want to call it).
Comments
Post a Comment