Commit 7c655ba4 by mengdongxing

Update tkdm_output_active_cid_std_week.sql

parent 1b5c2d8b
add jar /mnt1/testdata/udf-0.0.1.jar; add jar /mnt1/testdata/udf-0.0.1.jar;
CREATE TEMPORARY FUNCTION bootstrapmedian AS 'com.reyun.hive.udaf.BootStrap'; CREATE TEMPORARY FUNCTION bootstrapmedian AS 'com.reyun.hive.udaf.BootStrap';
...@@ -21,7 +20,7 @@ from ...@@ -21,7 +20,7 @@ from
round(avg(ins_rate), 4) avg_ins_rate, round(avg(ins_rate), 4) avg_ins_rate,
round(percentile_approx(ins_rate,0.5),4) approx_med_ins_rate, round(percentile_approx(ins_rate,0.5),4) approx_med_ins_rate,
round(bootstrapmedian(ins_rate),4) bootstarp_med_ins_rate round(bootstrapmedian(ins_rate),4) bootstarp_med_ins_rate
from tkdm.tkdm_data_active_detial_day from tkdm.tkdm_data_active_summary_day
where ds between '2017-02-22' and '2017-02-28' where ds between '2017-02-22' and '2017-02-28'
group by category_id, isgame,cid group by category_id, isgame,cid
) y ) y
......
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