-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-37290][SQL] - Exponential planning time in case of non-deterministic function #35233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
53ed33d
ab0684e
ec3a282
bc452a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,7 +185,7 @@ trait UnaryNode extends LogicalPlan with UnaryLike[LogicalPlan] { | |
| allConstraints += EqualNullSafe(a.toAttribute, l) | ||
| case a @ Alias(e, _) => | ||
| // For every alias in `projectList`, replace the reference in constraints by its attribute. | ||
| allConstraints ++= allConstraints.map(_ transform { | ||
| allConstraints ++= allConstraints.filter(_.deterministic).map(_ transform { | ||
|
||
| case expr: Expression if expr.semanticEquals(e) => | ||
| a.toAttribute | ||
| }) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it be sufficient to add
if e.deterministichere?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, updated the PR