cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Photon and UDF efficiency

Dekova
New Contributor II

When using a JVM engine, Scala UDFs have an advantage over Python UDFs because data doesn't have to be shifted out to the Python environment for processing. If I understand the implications of using the Photon C++ engine, any processing that needs to take place in the JVM (Scala UDFs) or in the Python environment (Python and Pandas UDFs) both need to have data serialized and/or shifted for processing.

Is my understanding correct? Do Scala UDFs lose their performance advantage when using the Photon C++ engine?

1 ACCEPTED SOLUTION

Accepted Solutions

-werners-
Esteemed Contributor III

Photon does not support UDFs:
https://learn.microsoft.com/en-us/azure/databricks/runtime/photon#limitations

So when creating a UDF, photon will not be used.

View solution in original post

1 REPLY 1

-werners-
Esteemed Contributor III

Photon does not support UDFs:
https://learn.microsoft.com/en-us/azure/databricks/runtime/photon#limitations

So when creating a UDF, photon will not be used.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!