Databricks SQL and Engineer Notebooks yields different outputs from same script

mortenhaga
Contributor

Hi all

We are having some alarming issues regarding a script that yields different output when running on SQL vs Notebook. The correct output should be 8625 rows which it is in the notebook, but the output in Databricks SQL is 156 rows. The script uses widgets in both Notebook and SQL but we have tried with hardcored values as well. 

The script is too large to paste in here, so please get in touch with me to to obtain it.

We have no idea why this is happening. Can anyone please help?

Serverelss cluster infoNotebook cluster infoWrong output in notebook attaching servereless clusterWrong output in SQL serverlessCorrect output in notebook with notebook compute/cluster