Query is taking too long to run

Fresher
New Contributor II

I have two clusters. Cluster A(spark cluster) and cluster B(SQL warehouse). whenever I try to run a particular query using cluster B, it works fine but whenever I try to run same query using cluster A. It's taking time and never show the output

jose_gonzalez
Databricks Employee
Databricks Employee

Check the physical query plan of the query you are running. Also, check the Spark UI to identify where is taking time and why.