Hello, your case I'd test the Python UDFs first: temporarily replace each with an equivalent built-in Spark/SQL expression and compare the Photon time and total runtime. Databricks generally recommends native Spark functions over Python/Scala UDFs fo...