Azure Synapse Notebook does't fail immediately in case of error in code

Peter Polacek 20 Reputation points
2025-01-23T18:26:28.9+00:00

Hello,

I am struggling with really weird behavior when executing a notebook within Azure Synapse. I am utilizing pyspark and sql within this notebook and noticed that the notebook doesn't fail immediately in case of a bug or let's say typo in a code. For example I create a temp view and if I then make a SELECT from that view in another cell and type wrong view name (view which doesn't exist) the cell runs anyway very long time (around 30 minutes) and then it fails on some generic error:

"org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception:"

I'd expect that it fails immediately on "object doesn't exist" or whatever.

I encountered the same behavior also when using python code which makes all the debugging and testing very hard.

Do you please know why it's like that and how to eventually avoid that ?

Thanks

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,149 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,164 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.