FOMO Daily
Feed
AWS Big Data·

Optimizing PySpark UDFs on AWS Glue 6.0 with native Arrow UDFs

Data EngineeringPySparkAWS GlueApache ArrowUDFs

TL;DR

Python UDFs can slow PySpark jobs because moving data between runtimes and processing it row by row adds overhead. Benchmarks on AWS Glue 6.0 across 10–100 million rows compared standard Python, Arrow-based and built-in Spark SQL approaches: Spark SQL remained fastest, while native Arrow UDFs were the fastest UDF option for supported calculations, beating pandas UDFs by about 18% on heavier math at 100 million rows. Prefer built-in functions where possible, then native Arrow UDFs when the computation supports batch processing.

Relevant links

Sign in to save links
Read the original post Sign in to mark as read or skip