We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2590f99 commit 3836b08Copy full SHA for 3836b08
src/main/scala/com/sparkTutorial/sparkSql/RddDatasetConversion.scala
@@ -36,7 +36,7 @@ object RddDatasetConversion {
36
for (response <- responseDataset.rdd.collect()) println(response)
37
}
38
39
- def toInt(split: String): Option[Int] = {
40
- if (split.isEmpty) None else Some(Math.round(split.toFloat))
+ def toInt(split: String): Option[Double] = {
+ if (split.isEmpty) None else Some(split.toDouble)
41
42
0 commit comments