Skip to content

fix: update Apply pattern match arity in Materializer.hasSelfRefExpr#759

Closed
He-Pin wants to merge 1 commit intodatabricks:masterfrom
He-Pin:fix-apply-arity
Closed

fix: update Apply pattern match arity in Materializer.hasSelfRefExpr#759
He-Pin wants to merge 1 commit intodatabricks:masterfrom
He-Pin:fix-apply-arity

Conversation

@He-Pin
Copy link
Copy Markdown
Contributor

@He-Pin He-Pin commented Apr 12, 2026

Motivation

The Apply, Apply0Apply3 case classes gained an extra tailstrict boolean field, but the pattern matches in Materializer.hasSelfRefExpr were not updated to include the new field — causing a compilation failure on master.

Modification

Updated pattern match arities for Apply, Apply0, Apply1, Apply2, and Apply3 in Materializer.hasSelfRefExpr to include the additional tailstrict boolean parameter.

Result

Master compiles again. No behavioral change — hasSelfRefExpr was already ignoring the tailstrict flag, and the wildcard _ pattern correctly does the same.

The auto-TCO PR (databricks#694) added a 'strict' boolean parameter to Apply,
Apply0, Apply1, Apply2, and Apply3 case classes, but hasSelfRefExpr
patterns were not updated, causing compilation failure on all Scala
versions.
@He-Pin
Copy link
Copy Markdown
Contributor Author

He-Pin commented Apr 12, 2026

Closing: this fix was already merged via #751 (commit 1bf3b40).

@He-Pin He-Pin closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant