I have a use case where I need to use ROW_NUMBER() over PARTITION: Something like:
SELECT
Column1 , Column 2
ROW_NUMBER() OVER (
PARTITION BY ACCOUNT_NUM
ORDER BY FREQ, MAN, MODEL) as LEVEL
FROM
TEST_TABLE
I need a workaround for this in Impala. Unfortunately Impala does not support sub queries and also does not support ROW_NUMBER() OVER functionality. Thank you for your help.
ROW_NUMBER() OVER PARTITION was added in CDH 5.2:
ROW_NUMBER() OVER([partition_by_clause] order_by_clause)