You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/12/09 14:18:16 UTC

[GitHub] [spark] MaxGekk commented on a change in pull request #26815: [SPARK-30189][SQL] Interval from year-month/date-time string should handle whitespaces

MaxGekk commented on a change in pull request #26815: [SPARK-30189][SQL] Interval from year-month/date-time string should handle whitespaces
URL: https://github.com/apache/spark/pull/26815#discussion_r355472769
 
 

 ##########
 File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/IntervalUtils.scala
 ##########
 @@ -156,7 +155,7 @@ object IntervalUtils {
   }
 
   private val dayTimePattern =
-    "^([+|-])?((\\d+) )?((\\d+):)?(\\d+):(\\d+)(\\.(\\d+))?$".r
+    "^([+|-](\\s+)?)?((\\d+)\\s+)?((\\d+):)?(\\d+):(\\d+)(\\.(\\d+))?$".r
 
 Review comment:
   Is `(\\s+)?` equal to `\\s*`?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org