cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

depth of view exceeds the maximum view resolution depth (100).

andrew0117
Contributor

I got this error after updating a view. How can I increase the value of spark.sql.view.maNestedViewDepth to work around this?

Thanks!

2 REPLIES 2

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi, Could you please confirm if you are showing the view? (https://docs.databricks.com/sql/language-manual/sql-ref-syntax-aux-show-views.html) also, it will be helpful if you post the screenshot of the error.

Thank you!

I found out the root cause for this error is that the view's new definition is trying to join another view which includes a join with this view itself, so it becomes an infinite loop.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.