Commit 86c8f9e2 by mengdongxing

Update tkdm_base_device_pay_info.sql

parent a068b97e
set hive.ignore.mapjoin.hint=flase;
set hive.skewjoin.key=10000; set hive.skewjoin.key=10000;
set hive.optimize.skewjoin=true; set hive.optimize.skewjoin=true;
set hive.input.format=org.apache.hadoop.hive.ql.io.BucketizedHiveInputFormat; set hive.input.format=org.apache.hadoop.hive.ql.io.BucketizedHiveInputFormat;
...@@ -9,7 +8,7 @@ set hive.auto.convert.sortmerge.join=true; ...@@ -9,7 +8,7 @@ set hive.auto.convert.sortmerge.join=true;
--insert overwrite table tkdm.tkdm_base_device_pay_info partition(ds='2017-02-24') --insert overwrite table tkdm.tkdm_base_device_pay_info partition(ds='2017-02-24')
select /*+mapjoin(a)*/ nvl(b.appid,a.appid) as appid, select nvl(b.appid,a.appid) as appid,
nvl(b.deviceid,a.deviceid) as deviceid, nvl(b.deviceid,a.deviceid) as deviceid,
nvl(b.first_payment_ds,'2017-02-24') as first_payment_ds, nvl(b.first_payment_ds,'2017-02-24') as first_payment_ds,
if(isnull(a.deviceid),'2017-02-24',nvl(b.last_payment_ds,'1970-01-01')) as last_payment_ds, if(isnull(a.deviceid),'2017-02-24',nvl(b.last_payment_ds,'1970-01-01')) as last_payment_ds,
......
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