Commit f8193869 authored by 赵建伟's avatar 赵建伟

update codes

parent 71f4bab0
#!/bin/bash
# 定义变量方便修改
hive=/opt/hive/hive-1.1.0-cdh5.16.1/bin/beeline
hive="/opt/spark/spark-2.4.5-bin-hadoop2.7/bin/beeline -u jdbc:hive2://bj-gm-prod-cos-datacenter003:10010/online -n data"
# 如果是输入的日期按照取输入日期;如果没输入日期取当前时间的前一天
if [ -n $1 ] ;then
partition_day=$1
if [ -n "$1" ] ;then
partition_day=$1
else
partition_day=`date --date="$V_PARYMD -1 day" +%Y%m%d`
partition_day=`date --date="-1 day" +%Y%m%d`
fi
sql="
......@@ -236,7 +236,7 @@ FROM
FROM online.bl_hdfs_maidian_updates
WHERE partition_date>=regexp_replace(DATE_SUB(current_date,1) ,'-','')
AND partition_date<regexp_replace((current_date),'-','')
AND (get_json_object(params['extra_param'], '$.type')='互栏'
AND (get_json_object(params['extra_param'], '$.type')='���互栏'
or get_json_object(params['extra_param'], '$.jump_from')='msg_link')
AND action='on_click_card'
and params['card_content_type']='service'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment