以一个简单的栗子为例:
[En]
Take a simple chestnut:
查找最小日期的记录
[En]
Find the record of the minimum date
select * from (
select
*,
row_number() over (partition by id order by cast(date as bigint) asc ) date_row_number
from ods_sdm.sdm_xxx ) t where t.date_row_number = 1;
Original: https://www.cnblogs.com/0xcafedaddy/p/9599170.html
Author: 0xcafedaddy
Title: hive的rownumber()的使用
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/6857/
转载文章受原作者版权保护。转载请注明原作者出处!