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