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:ย 

Materialized View Refresh - NUM_JOINS_THRESHOLD_EXCEEDED?

GregTyndall
New Contributor II

I have a very basic view with 3 inner joins that will only do a full refresh. Is there a limit to the number of joins you can have and still get an incremental refresh?

"incrementalization_issues": [
{
"issue_type": "INCREMENTAL_PLAN_REJECTED_BY_COST_MODEL",
"prevent_incrementalization": true,
"cost_model_rejection_subtype": "NUM_JOINS_THRESHOLD_EXCEEDED"
}
]

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

MuthuLakshmi
Databricks Employee
Databricks Employee

@GregTyndall We have a limit of 2 joins 

View solution in original post

6 REPLIES 6

MuthuLakshmi
Databricks Employee
Databricks Employee

@GregTyndall We have a limit of 2 joins 

PotnuruSiva
Databricks Employee
Databricks Employee

@GregTyndall Yes, the current limit is 2 by default. But we can increase up to 5 with the below flag added to the pipeline settings.

pipelines.enzyme.numberOfJoinsThreshold 5

I have the same issue.

What do you mean exactly with "added to the pipeline settings"? How can I set it? 

aayrm5
Honored Contributor

Hey @TheSmike 

In the DLT Pipeline's top right cornor, you can click on settings and scroll down to Advanced and click on Add Configuration and give the key as `pipelines.enzyme.numberOfJoinsThreshold` and value as 5.

Hope this helps.

Riz

TheSmike
New Contributor II

Thanks, it works.

_DatabricksUser
New Contributor II

@GregTyndall- how did you get those level of details (incrementalization_issues) for the MV build?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now