Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5236#discussion_r27441173
  
    --- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
    @@ -1010,6 +1010,65 @@ private[spark] object Utils extends Logging {
         )
       }
     
    +  /** Check whether a time-suffix was provided for the time string. */
    +  private def hasTimeSuffix(str: String) : Boolean = {
    +    val lower = str.toLowerCase.trim()
    +    lower.endsWith("ms") || lower.endsWith("us") || lower.endsWith("s")
    +  }
    +
    +  val timeError = "Time must be specified as seconds (s), " +
    --- End diff --
    
    nit: I'd declare this where it's used.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to