MaxGekk commented on issue #27617: [SPARK-30865][SQL] Refactor DateTimeUtils
URL: https://github.com/apache/spark/pull/27617#issuecomment-601838431
 
 
   I have rebased this on the recent master, and got pretty interesting error:
   ```
   org.scalatest.exceptions.GeneratorDrivenPropertyCheckFailedException: 
DateTimeException was thrown during property evaluation.   Message: Invalid 
date 'February 29' as '1000' is not a leap year       Occurred when passed 
generated values (    )
   ```
   in https://github.com/apache/spark/pull/27617#issuecomment-601824955
   
   It seems 
https://github.com/apache/spark/blob/b27b3c91f113ec49ee87c877dac0a602849d76b1/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ArithmeticExpressionSuite.scala#L369
 generates a timestamp which can be represented as local date-time in Julian 
calendar but not in Proleptic Gregorian calendar, see the error message. /cc 
@cloud-fan @HyukjinKwon 

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