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

    https://github.com/apache/spark/pull/8606#discussion_r38992129
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
 ---
    @@ -56,6 +57,12 @@ object DateTimeUtils {
     
       @transient lazy val defaultTimeZone = TimeZone.getDefault
     
    +  // Constants defining the allowed ranges for timestampts that fit in 
parquet files. Mostly
    +  // used by tests to avoid duplication.
    +  private[spark] final val MIN_TIMESTAMP: Long =
    +    -(DateTimeUtils.JULIAN_DAY_OF_EPOCH * DateTimeUtils.SECONDS_PER_DAY * 
1000)
    --- End diff --
    
    I gave it a try and I got 
    ```
    scala> new java.sql.Timestamp(-4708372992000L)
    res3: java.sql.Timestamp = 1820-10-18 14:36:48.0
    
    scala> java.sql.Timestamp.valueOf("0317-02-14 06:13:20.0")
    res7: java.sql.Timestamp = 0317-02-14 06:13:20.0
    
    scala> res5.getTime
    res8: Long = -52159715200000
    
    scala> new java.sql.Timestamp(-72135740800000L)
    res1: java.sql.Timestamp = 0317-02-14 06:13:20.0
    ```
    
    So, is it the right lower bound?


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