Commit d6411015 authored by 王志伟's avatar 王志伟

增加搜索关键词的action

parent a0eef271
......@@ -68,9 +68,9 @@ object Search_keywords_count {
//搜索关键词提取
val search_keywords = sc.sql(
s"""
|select count(test_udf(params)) as search_keywords
|select params['query'] as search_keywords
|from online.tl_hdfs_maidian_view
|where (action = 'do_search' or action = 'search_result_click_search')
|where (action = 'do_search' or action = 'search_result_click_search' or action ='on_click_jumping_hot_word')
|and partition_date ='20190108'
""".stripMargin
).show(20)/*.rdd.map(x=>{
......
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