Description
While saving statistics for timestamp/date columns, default time zone is used in conversion of internal type (microseconds or days since epoch) to textual representation. The textual representation doesn't contain time zone. So, when it is converted back to internal types (Long for TimestampType or DateType), the Timestamp.valueOf and Date.valueOf are used in conversions. The methods use current system time zone.
If system time zone is different while saving and retrieving statistics for timestamp/date columns, restored microseconds/days since epoch will be different.
Attachments
Issue Links
- relates to
-
SPARK-26654 Use Timestamp/DateFormatter in CatalogColumnStat
- Resolved
- links to