Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 05:00 AM
Hi @Sanjay Jain , Python UDFs are generally slower to process because it runs mostly in the driver which can also lead to OOM errors on Driver. To resolve this issue, please consider the below:
- Use spark built-in functions to do the same functionality.
- Use pandas UDF instead of python UDFs.
- If above 2 options are not suitable, use the configuration : spark.databricks.execution.pythonUDF.arrow.enabled = True