Commit 28beb1e2 authored by litaolemo's avatar litaolemo

修复埋点变化

parent 285e11fa
...@@ -123,7 +123,7 @@ for t in range(0, task_days): ...@@ -123,7 +123,7 @@ for t in range(0, task_days):
'search_home' as page_name, 'search_home' as page_name,
'' as input_type, '' as input_type,
app_version, app_version,
params['query'] as query coalesce(params['query'],params['card_name']) as query
FROM online.bl_hdfs_maidian_updates FROM online.bl_hdfs_maidian_updates
WHERE partition_date >= '{start_date}' WHERE partition_date >= '{start_date}'
AND partition_date < '{end_date}' AND partition_date < '{end_date}'
......
...@@ -130,7 +130,7 @@ for t in range(0, task_days): ...@@ -130,7 +130,7 @@ for t in range(0, task_days):
'search_home' as page_name, 'search_home' as page_name,
'' as input_type, '' as input_type,
app_version, app_version,
params['query'] as query coalesce(params['query'],params['card_name']) as query
FROM online.bl_hdfs_maidian_updates FROM online.bl_hdfs_maidian_updates
WHERE partition_date >= '{start_date}' WHERE partition_date >= '{start_date}'
AND partition_date < '{end_date}' AND partition_date < '{end_date}'
......
...@@ -220,7 +220,7 @@ for t in range(1, task_days): ...@@ -220,7 +220,7 @@ for t in range(1, task_days):
'search_home' as page_name, 'search_home' as page_name,
'' as input_type, '' as input_type,
app_version, app_version,
params['query'] as query coalesce(params['query'],params['card_name']) as query
FROM online.bl_hdfs_maidian_updates FROM online.bl_hdfs_maidian_updates
WHERE partition_date >= '{start_date}' WHERE partition_date >= '{start_date}'
AND partition_date < '{end_date}' AND partition_date < '{end_date}'
......
...@@ -186,7 +186,7 @@ for t in range(0, task_days): ...@@ -186,7 +186,7 @@ for t in range(0, task_days):
AND action in ('do_search','search_result_click_search') AND action in ('do_search','search_result_click_search')
UNION ALL UNION ALL
SELECT partition_date,params['query'] as query,cl_id SELECT partition_date,coalesce(params['query'],params['card_name']) as query,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