Commit a015ed4a authored by litaolemo's avatar litaolemo

update

parent 6c5886ee
...@@ -99,16 +99,14 @@ for t in range(0, task_days): ...@@ -99,16 +99,14 @@ for t in range(0, task_days):
,NVL(t3.search_uv,0) as uv ,NVL(t3.search_uv,0) as uv
FROM FROM
( (
SELECT active_type,device_os_type,channel,search_pv,search_uv SELECT t.active_type,t.device_os_type,t.channel,t.search_pv,t.search_uv FROM
FROM
( (
SELECT active_type,device_os_type,channel SELECT active_type,device_os_type,channel
,count(t1.cl_id) as search_pv ,count(t1.cl_id) as search_pv
,count(distinct t1.cl_id) as search_uv ,count(distinct t1.cl_id) as search_uv
FROM FROM
( (
SELECT partition_date SELECT partition_date,cl_id
,cl_id
FROM online.bl_hdfs_maidian_updates FROM online.bl_hdfs_maidian_updates
WHERE partition_date >= {yesterday_str} WHERE partition_date >= {yesterday_str}
AND partition_date < {today_str} AND partition_date < {today_str}
......
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