~/talk

Polars on Spark

Talkat PyData Seattle 2025 · 2025-11-07..11-09· [databases]
links:none on file
links:none on file
slides:none on file

Claims that combining PySpark Arrow UDFs with Polars yields real speed and memory wins: Polars is a Rust DataFrame that reads Arrow without copying, enabling zero-copy Arrow interoperability. Benchmarks use TPC-DS SF100 (≈288M rows) on a four‑worker cluster (61 GB RAM each) and show pandas UDFs at ~193s versus Polars on Arrow UDFs at 75.5s — about a 2.5× speedup. Per‑batch memory drops from ~425 MB to ~275 MB, and the approach produces working, reproducible pipelines with Polars’ ergonomic API.

AI-written summary · about

  1. 0:00Polars on Spark intro
  2. 1:47What is Apache Spark and PySpark
  3. 5:21Python UDFs challenges in Spark
  4. 7:25Evolution of PySpark UDFs
  5. 8:28Pandas UDFs and Arrow
  6. 12:49Arrow UDFs limitations
  7. 15:17Polars for Spark UDFs
  8. 17:53Polars UDFs performance benchmarks
  9. 20:04Demo: image processing
  10. 25:01Future PySpark UDFs improvements
  11. 26:49Key takeaways and best practices
  12. 28:21Q&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.