Spark Scala Vs Pyspark

alej
New Contributor

With the release of spark connect and used defined table functions for pyspark, I wonder, what are the remaining advantages (if any) of using scala Spark?

delonb2
New Contributor III

The main remaining advantages of Scala are performance as there will always be some interoperation overhead when using PySpark. While I don't have any stats on me, I would assume the differences in performance are negligible at this point until very very large workloads. PySpark is even starting to gain more developmental support over the native Scala implementation with functions and features only being available in PySpark.