cloud-fan commented on a change in pull request #26177: [SPARK-29520][SS] Fix 
checks of negative intervals
URL: https://github.com/apache/spark/pull/26177#discussion_r339681061
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/Triggers.scala
 ##########
 @@ -31,7 +31,7 @@ private object Triggers {
 
   def convert(interval: String): Long = {
     val cal = IntervalUtils.fromString(interval)
-    if (cal.months > 0) {
+    if (cal.months != 0) {
 
 Review comment:
   This seems like another way of converting interval to duration: make sure 
the `months` field is 0. Shall we also take it into account in the new 
`getDuration` method?

----------------------------------------------------------------
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]

Reply via email to