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

bug fix

parent 7a7c45d2
......@@ -472,7 +472,7 @@ object GetPortrait {
val ti = new TiContext(sc)
ti.tidbMapTable(dbName = "jerry_prod",tableName = "data_feed_click")
val stat_date = param.date
val stat_date = param.date.replace("-","")
val diary_tag = sc.sql(
s"""
......@@ -481,8 +481,8 @@ object GetPortrait {
| concat_ws(',',collect_set(cast(c.level2_id as string))) as level2_ids,
| concat_ws(',',collect_set(cast(c.level3_id as string))) as level3_ids from
| (select a.diary_id,b.level1_id,b.level2_id,b.level3_id
| from tl_hdfs_diary_tags_view a
| left join bl_tag_hierarchy_detail b
| from online.tl_hdfs_diary_tags_view a
| left join online.bl_tag_hierarchy_detail b
| on a.tag_id = b.id
| where a.partition_date = '${stat_date}'
| and b.partition_date = '${stat_date}') c
......
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