maropu commented on a change in pull request #25039: [WIP][SPARK-28237][SQL]
Add an Idempotent batch strategy to catch potential bugs in corresponding rules
URL: https://github.com/apache/spark/pull/25039#discussion_r300194542
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/trees/RuleExecutorSuite.scala
##########
@@ -30,6 +30,31 @@ class RuleExecutorSuite extends SparkFunSuite {
}
}
+ object SetMaxLiterals extends Rule[Expression] {
+ def apply(e: Expression): Expression = e transform {
+ case IntegerLiteral(i) => Literal(Integer.MAX_VALUE)
Review comment:
nit: `i` not used.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]