Skip to content
TeachTrails
Data EngineeringPySpark

Spark SQL and UDFs in PySpark: When to Use Which (Timed)

Run SQL on DataFrames with temp views, mix SQL and Python, and compare Python UDFs, pandas UDFs and built-in functions, with real timings on a million rows.

Sukanya Saha, Technology Consultant

11 min read

Beginner friendly

Checking your access…