Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2022 03:27 PM
You cannot. It is not serializable and not available on a worker. I would recommend that you use the DataFrame APIs. It should be much more performant and there are very limited reasons why RDDs should be used over a DataFrame. Your function looks like it could be converted to a user defined function.