Commit 43a92cb4 authored by litaolemo's avatar litaolemo

update

parent 996eff79
......@@ -181,7 +181,7 @@ for t in range(1, task_days):
sql_search_ctr = r"""
SELECT query,
partition_date,
all_search_uv as all_search_uv, --全部搜索uv
all_search_pv as all_search_pv --全部搜索pv
FROM (
......@@ -189,7 +189,6 @@ for t in range(1, task_days):
SELECT query
, count(click.cl_id) as all_search_pv
, count(distinct click.cl_id) as all_search_uv,
partition_date
FROM (
SELECT cl_id,
partition_date,
......@@ -289,7 +288,7 @@ for t in range(1, task_days):
AND params['card_type'] = 'highlight_word'
AND params['card_name'] in (select * from keywords_table)
) click
GROUP BY query,partition_date
GROUP BY query
)
""".format(start_date=last_two_year_str, end_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