From 0198ba022e8a5d637454855433ef9bcc677c0cf9 Mon Sep 17 00:00:00 2001
From: mengdongxing <mengdongxing@reyun.com>
Date: Thu, 2 Mar 2017 03:19:00 +0000
Subject: [PATCH] Delete tkdm_data_retention_detial_week.sql

---
 tkdm_data_retention_detial_week.sql | 51 ---------------------------------------------------
 1 file changed, 51 deletions(-)
 delete mode 100644 tkdm_data_retention_detial_week.sql

diff --git a/tkdm_data_retention_detial_week.sql b/tkdm_data_retention_detial_week.sql
deleted file mode 100644
index 509dc68..0000000
--- a/tkdm_data_retention_detial_week.sql
+++ /dev/null
@@ -1,51 +0,0 @@
-insert overwrite table tkdm.tkdm_data_retention_detial_week partition(ds='2017-02-26') 
-
-select /*+ mapjoin(b) */ a.appid,
-       a.ds as ds_user,
-       a.num_user,
-       a.d1_user,
-       a.d1_rate,
-       b.category_id,
-       b.category_name,
-       b.isgame
-from 
-(select appid,
-        ds,
-        sum(num_install) as num_user,
-        sum(num_newuser_reten_d1) as d1_user,
-        round(sum(num_newuser_reten_d1)/sum(num_install),4) as d1_rate
-     from tkio.tkio_rpt_channel_compare_day
-     where ds between date_sub('2017-02-22',1) and  date_sub('2017-02-28',1) and 
-           campaignid !='_default_' and 
-           cid!=-2
-     group by appid,ds
-     having sum(num_install)>0
-) as a 
-
-join 
-
-(select appid,
-        category_id,
-        category_name,
-        isgame
-     from tkio_v2.tkio_dp_app_info
-     where ds =date_sub('2017-02-28',1)
-) as b on a.appid=b.appid
-
-
-
-create EXTERNAL table tkdm_data_retention_detial_week(
-appid string,
-ds_user string,
-num_user int,
-d1_user int,
-d1_rate double,
-category_id int,
-category_name string,
-isgame int
-)
-PARTITIONED BY (ds string)
-ROW FORMAT DELIMITED 
-FIELDS TERMINATED BY '\t'
-location 's3://reyuntkio/warehouse/tkio/tkdm.db/tkdm_data_retention_detial_week'
-;
--
libgit2 0.27.1