Ryan_Chynoweth
Databricks Employee
Databricks Employee

I do not believe this is possible. I believe photon is a specific runtime and not a configuration. I think you need to deploy different clusters to do that.

Are you sure it is slow due to photon? If there are computations not supported by photon it will fall back to Spark. You can see this in the execution plan. I believe that blue boxes are spark and yellow is photon.

It could be the case that the slow area of code is actually running on Spark. But validate that because if it is on photon you would want to know.