gob*_*s14 13
我不知道会模仿这种行为的内置函数或UDF,但如果你正在使用,HIVE 0.13你可以使用该row_number()函数以圆周方式获得所需的结果.
select pk, col_1, col_2, ... , col_n
from (
select pk, col_1, col_2, ... , col_n, row_number() OVER (ORDER by pk) as rank
from some_database.some_table
) x
where rank between 31 and 50
Run Code Online (Sandbox Code Playgroud)