摘要: hive- date_format(b.month_start_date_entry ,'yyyyMMdd') mysql- DATE_FORMAT(create_time,'%Y%m%d') 阅读全文
posted @ 2022-03-11 18:53 star521 阅读(410) 评论(2) 推荐(0) 编辑
摘要: hive-sort_arry实现字段横向比较,并取出最大值 先把多字段组成数组,再数组排序,取出最后一个即为最大值 sort_array(array(nvl(is_receive_recharge,0),nvl(is_receive_coupon,0),nvl(is_receive_points,0 阅读全文
posted @ 2022-03-11 18:50 star521 阅读(471) 评论(0) 推荐(0) 编辑
摘要: hive-hive生成一段连续日期 select pos ,date_add(start_date,pos) as stat_date from (select '${entryDate}' as start_date, '${abortDate}' as end_date) temp latera 阅读全文
posted @ 2022-03-11 18:46 star521 阅读(358) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/airnew/p/9788122.html 不能直接通过 create table as select 创建表,对改变表结构丢失表备注信息(分区表) create table dwd_cstm_points_record_mi_back__202203 阅读全文
posted @ 2022-03-11 18:39 star521 阅读(203) 评论(0) 推荐(0) 编辑