-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-22815] [SQL] Keep PromotePrecision in Optimized Plans #20000
Conversation
Test build #85003 has finished for PR 20000 at commit
|
cc @cloud-fan |
Test build #85014 has finished for PR 20000 at commit
|
retest this please |
Test build #85016 has finished for PR 20000 at commit
|
cc @cloud-fan |
Test build #85025 has finished for PR 20000 at commit
|
@@ -20,7 +20,10 @@ package org.apache.spark.sql.catalyst.analysis | |||
import scala.util.control.NonFatal | |||
|
|||
import org.apache.spark.internal.Logging | |||
import org.apache.spark.sql.catalyst.expressions.{Add, AttributeReference, AttributeSet, Cast, CheckOverflow, Expression, ExpressionSet, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Literal, Multiply, PreciseTimestampConversion, PredicateHelper, Subtract, TimeAdd, TimeSub, UnaryMinus} | |||
import org.apache.spark.sql.catalyst.expressions.{Add, AttributeReference, AttributeSet, Cast, CheckOverflow, Expression} | |||
import org.apache.spark.sql.catalyst.expressions.{ExpressionSet, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual} |
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.
nit: Do we need these imports?
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.
They are needed.
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.
maybe just import org.apache.spark.sql.catalyst.expressions._ ?
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.
Sorry. This splits long one line into two lines.
@cloud-fan's suggestion looks good to make them simple
Test build #85082 has finished for PR 20000 at commit
|
thanks, merging to master! |
What changes were proposed in this pull request?
We could get incorrect results by running DecimalPrecision twice. This PR resolves the original found in #15048 and #14797. After this PR, it becomes easier to change it back using
children
instead of usinginnerChildren
.How was this patch tested?
The existing test.