sql.DataFrame
错误代码
val predictData = result.map(row=>{
row.get(1).asInstanceOf[String]
})
正确代码
val predictData = result.map(row=>{
row.getAs [Seq[String]]("filtered").mkString(",")
})
sql.DataFrame
错误代码
val predictData = result.map(row=>{
row.get(1).asInstanceOf[String]
})
正确代码
val predictData = result.map(row=>{
row.getAs [Seq[String]]("filtered").mkString(",")
})
本文标题:scala.collection.mutable.Wrapped
本文链接:https://www.haomeiwen.com/subject/iajmuctx.html
网友评论