首先排序:row_number() over (partition by category order by cast(duration as int) desc) duration_rank,然后拼接concat_ws(',',collect_set(category)),但是得到的结果却是乱序的,产生这个问题的根本......
SELECT p, product_name, factory_sn FROM product_info where product_name ilike regexp_replace(concat('%','带电功能','%'),'\','\','g');...