Implementing Limit query in Hive
问题 For my requirement i have to implement upper and lower limit in hive. For that i am trying to write query something like this SELECT * FROM `your_table` LIMIT 0, 5 SELECT * FROM `your_table` LIMIT 5, 5 But hive supports only 1 limit, it's not supporting upper and lower limit. I tried with with other alternatives to achieve this by using RANK(), ROWNUM() but didn't succeeded. Can anyone please help me to solve this. Thanks in advance. 回答1: Hi you can use the Facebook UDF and rownum