Commit bd5efd8b authored by 王志伟's avatar 王志伟
parents df73255f 50bfeee6
...@@ -670,9 +670,8 @@ object GetLevelCount { ...@@ -670,9 +670,8 @@ object GetLevelCount {
val level1_name = sc.sql( val level1_name = sc.sql(
s""" s"""
|select a.level1_id,a.count,b.level1_name from tmp a |select a.level1_id,a.count,b.level1_name from tmp a
|left join online.bl_tag_hierarchy_detail b |left join (select distinct level1_id,level1_name from online.bl_tag_hierarchy_detail where partition_date = '${stat_date}') b
|on a.level1_id = b.level1_id |on a.level1_id = b.level1_id order by a.count desc
|where b.partition_date = '${stat_date}'
""".stripMargin """.stripMargin
) )
level1_name.show() level1_name.show()
......
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