I want a set of random data from hive, for example row_number between 772001 and 773000.
My sql is as below:
select * from (
select *, row_number() over (order by `name`) as row_dsa
from `jck_bonc_demo`.`frjc_jbxx`
)tmp_table where row_dsa between 772001 and 773000
and I get the following error:
[Cloudera][Hardy] (80) Syntax or semantic analysis error thrown in server while executing query. Error message from server: Error while compiling statement: FAILED: SemanticException Failed to breakup Windowing invocations into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
What can I do for this error, anyone can help?