count(distinct ) over(partition by order by)替换成size(collect_set() over(partition by order by))

NoSuchKey