Created
November 22, 2019 03:09
-
-
Save josep2/39ea5933997142ac15e61a7d28ff8c18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://blog.codecentric.de/en/2016/07/spark-2-0-datasets-case-classes/ | |
final case class Body(id: Int, | |
width: Double, | |
height: Double, | |
depth: Double, | |
material: String, | |
color: String) | |
val ds = df.as[Body] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment