cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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.