标签: scala apache-spark spark-dataframe
这段代码在旧版本中运行得非常好
val allRecordsList = allRecordsDF.select("col1","col2","col3").collect.map(x => (x.getLong(0),x.get(1).toString,x.get(2).toString)).toList
但是当我在spark2.2中尝试时,我得到0条记录。欢迎任何建议