~/talk

Faster PySpark with Apache Arrow

Talkat PyData NYC 2024 Β· 2024-11-06..11-08Β· [python, databases]
links:none on file
slides:none on file

Claims that Apache Arrow reduces PySpark serialization cost and speeds Python UDFs by concrete amounts and shows working examples. Benchmarks show Arrow-optimized Python UDFs ~1.6Γ— faster than pickled UDFs, pandas UDFs ~1.8Γ— faster than Arrow UDFs and ~3Γ— vs regular UDFs and up to ~150Γ— on a SciPy CDF case. Demos include Spark 3.5 Arrow UDF flag, Spark 3.3 mapping Arrow API, forthcoming Spark 4.0 dataframe_to_arrow and a Python data source that reads Arrow record batches via ADBC in ~20 lines of code.

AI-written summary Β· about

  1. 0:00Introduction
  2. 1:17Arrow and PySpark overview
  3. 5:10Python UDFs performance issues
  4. 9:29Arrow-optimized Python UDFs
  5. 12:19Pandas UDFs for vectorization
  6. 15:54Pandas iterator UDFs
  7. 17:41PySpark UDF optimizations
  8. 19:07Other PySpark Arrow features
  9. 23:42Python data source API
  10. 25:31Conclusion
  11. 26:36Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.