
HIVE
NorthFish北海有鱼
simple notebook.想去硅谷写代码
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sql中 null != ‘某值‘ 等于true 还是 false
无原创 2023-02-27 19:26:05 · 421 阅读 · 0 评论 -
LATERAL VIEW explode
select t1.*, sign_combination, split(sign_combination,':')[0] as sign_spu_id, split(sign_combination,':')[1] as sign_spu_id_score from ( SELECT spu_id, spu_name, split(sign_combination_list,"\\;") as sign_combination_list1 from table ) t1 LATERAL VIEW exp.原创 2022-03-29 21:03:56 · 276 阅读 · 0 评论 -
hive常用
1.聚合 2.展开 3.排列 row number https://zhuanlan.zhihu.com/p/92654574 select *, row_number() over (partition by uuid order by uuid_spu_cate_search_weight desc) as ranking from table1 WHERE dt='20201230' limit 1000 ...原创 2021-05-07 17:38:08 · 258 阅读 · 0 评论 -
hive/sql常用
alter table XXX add columns( XXX String comment 'XXX' )原创 2019-12-07 15:47:47 · 355 阅读 · 0 评论