Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 06:25 AM - edited 02-22-2024 06:29 AM
The documentation states: "The same mechanism described in the preceding section for UDFs also applies to typed Dataset APIs.".
My
map(_.getAs[Int]("dropoff_zip"))
is like a UDF, so that's why I'm adding the compiled source.
(I also had to do it in a similar way when trying Spark Connect against a Spark 3.5.0 cluster, and it ran successfully).
By the way, as soon as I leave out the .map(), it runs, so the error has to do with user functions / Dataset API.