上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页
该文被密码保护。 阅读全文
posted @ 2018-07-10 15:21 chenzechao 阅读(238) 评论(0) 推荐(0)
摘要: 1 drop table work_day_tbl; 2 create table work_day_tbl ( 3 day string comment '日期' 4 ,week int comment '周一1,周日7' 5 ,work_day i... 阅读全文
posted @ 2018-07-10 10:12 chenzechao 阅读(234) 评论(0) 推荐(0)
摘要: ROWS BETWEEN含义,也叫做WINDOW子句: PRECEDING:往前 FOLLOWING:往后 CURRENT ROW:当前行 UNBOUNDED:起点 UNBOUNDED PRECEDING 表示从前面的起点 UNBOUNDED FOLLOWING:表示到后面的终点 AVG(pv) O 阅读全文
posted @ 2018-07-10 10:05 chenzechao 阅读(261) 评论(0) 推荐(0)
摘要: 1 %sql 2 select 3 t3.* 4 from ( 5 select 6 t2.* 7 ,row_number() over(partition by t2.pt order by t2.pv) as rn2 8 from ( 9 select 10 t1.co... 阅读全文
posted @ 2018-07-09 11:42 chenzechao 阅读(1242) 评论(0) 推荐(0)
摘要: hive存在两种锁,共享锁Shared (S)和互斥锁Exclusive (X) 其中只触发s锁的操作可以并发的执行,只要有一个操作对表或者分区出发了x锁,则该表或者分区不能并发的执行作业。 阅读全文
posted @ 2018-07-04 16:24 chenzechao 阅读(440) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-06-20 08:55 chenzechao 阅读(1088) 评论(0) 推荐(0)
摘要: http://xidea.online/index.html 阅读全文
posted @ 2018-05-23 13:22 chenzechao 阅读(90) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-05-17 16:33 chenzechao 阅读(13) 评论(0) 推荐(0)
摘要: 待完成 https://www.cnblogs.com/haozhengfei/p/5fc4a976a864f33587b094f36b72c7d3.html 阅读全文
posted @ 2018-05-17 16:33 chenzechao 阅读(66) 评论(0) 推荐(0)
摘要: 1 -- 十分位,这个算法不是很准确 2 select 3 family_agreement_cnt -- 字段 4 ,dt -- 分区 5 ,rn -- 排序 6 ,cnt -- 总行数 7 ,percent2 ... 阅读全文
posted @ 2018-05-15 18:05 chenzechao 阅读(746) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页