Skip to content

Commit d6625e1

Browse files
committed
removed the unreachable pre-Spark-3.4 early return
1 parent 10f76ca commit d6625e1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎spark/src/main/scala/org/apache/spark/sql/comet/DecimalPrecision.scala‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ import org.apache.spark.sql.types.DecimalType
4141
object DecimalPrecision {
4242
def promote(expr: Expression): Expression = {
4343
expr.transformUp {
44-
// This means the binary expression is already optimized with the rule in Spark. This can
45-
// happen if the Spark version is < 3.4
46-
case e: BinaryArithmetic if e.left.prettyName == "promote_precision" => e
47-
4844
// Recursive exprToProto calls can re-promote every decimal binary operator below. Collapse
4945
// only equivalent wrappers so the shared promotion rule remains idempotent.
5046
case outer @ CheckOverflow(

0 commit comments

Comments
 (0)