Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3836b08

Browse files
authored
Update RddDatasetConversion.scala
1 parent2590f99 commit3836b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/main/scala/com/sparkTutorial/sparkSql/RddDatasetConversion.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object RddDatasetConversion {
3636
for (response<- responseDataset.rdd.collect()) println(response)
3737
}
3838

39-
deftoInt(split:String):Option[Int]= {
40-
if (split.isEmpty)NoneelseSome(Math.round(split.toFloat))
39+
deftoInt(split:String):Option[Double]= {
40+
if (split.isEmpty)NoneelseSome(split.toDouble)
4141
}
4242
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp