chenjunjiedada commented on issue #1116:
URL: https://github.com/apache/iceberg/issues/1116#issuecomment-645460307


   @edgarRd , I guess you could reproduce this by setting time zone to 
`Asia/shanghai`, in ubuntu you could use the following command:
   
   `sudo timedatectl set-timezone Asia/Shanghai`
   
   The following statement return 1499.
   ```java
         min = Optional.ofNullable(((DateColumnStatistics) 
columnStats).getMinimum())
             .map(minStats -> DateTimeUtil.daysFromDate(
                 DateTimeUtil.EPOCH.plus(minStats.getTime(), 
ChronoUnit.MILLIS).toLocalDate()))
   ```
   
   The workaround for ORC seems depends on the time zone.


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



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

Reply via email to