Commit d1b33ab6 authored by 高雅喆's avatar 高雅喆

change sql

parent 45f26445
......@@ -192,9 +192,8 @@ object Main {
s"""
|select a.device_id device_id,b.similarity_cid similarity_cid from
|(select device_id,first(cid) as cid from data_feed_click
|where cid_type='diary'
|and cid in (select cid from nd_cid_similarity_matrix)
|group by device_id order by time desc) a left join
|where cid in (select cid from nd_cid_similarity_matrix)
|group by device_id) a left join
|nd_cid_similarity_matrix b
|on a.cid = b.cid
|where b.similarity_cid is not null
......
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