举个例子,我的一个dataframe表里有uid,day,cnt三个字段,如果我要根据cnt进行倒序排列,首先要确保cnt的类型是integer,否则spark sql的order by cnt是不会生效的。


举个例子,我的一个dataframe表里有uid,day,cnt三个字段,如果我要根据cnt进行倒序排列,首先要确保cnt的类型是integer,否则spark sql的order by cnt是不会生效的。
本文标题:spark sql根据某个数字字段进行排序失效问题
本文链接:https://www.haomeiwen.com/subject/dyctsctx.html
网友评论