-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40903][SQL] Avoid reordering decimal Add for canonicalization if data type is changed #38379
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 1 commit
750b6a5
81bb9c5
4b0d05b
3b79685
cf49066
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 |
|---|---|---|
|
|
@@ -477,7 +477,10 @@ case class Add( | |
| override protected def withNewChildrenInternal(newLeft: Expression, newRight: Expression): Add = | ||
| copy(left = newLeft, right = newRight) | ||
|
|
||
| override lazy val canonicalized: Expression = { | ||
| override lazy val canonicalized: Expression = dataType match { | ||
| case _: DecimalType => | ||
|
||
| withCanonicalizedChildren | ||
| case _ => | ||
| // TODO: do not reorder consecutive `Add`s with different `evalMode` | ||
| orderCommutative({ case Add(l, r, _) => Seq(l, r) }).reduce(Add(_, _, evalMode)) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.