MaxGekk commented on a change in pull request #26423: [SPARK-29787][SQL] Move
methods add/subtract/negate from CalendarInterval to IntervalUtils
URL: https://github.com/apache/spark/pull/26423#discussion_r343558820
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/IntervalUtilsSuite.scala
##########
@@ -203,6 +204,30 @@ class IntervalUtilsSuite extends SparkFunSuite {
assert(!isNegative("-1 year 380 days", 31))
}
+ test("negate") {
+ assert(negate(new CalendarInterval(1, 2, 3)) === new CalendarInterval(-1,
-2, -3))
+
Review comment:
Remove the blank line
----------------------------------------------------------------
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]