hive-sql
Hive sql 汇总
连续7天登陆
1 | select user_id, count(1) as cn |
时间处理
1 | date_sub(from_unixtime(unix_timestamp(cast(imp_date as string), 'yyyyMMdd')),1) |
相邻间隔
1 | select t1.id, |
- Title: hive-sql
- Author: Tricy Zhou
- Created at : 2022-12-05 15:01:21
- Updated at : 2026-04-25 14:51:45
- Link: https://redefine.ohevan.com/2022/12/05/hive-sql/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments