Github user adrian-wang commented on the pull request:
https://github.com/apache/spark/pull/3732#issuecomment-70039420
According to https://docs.oracle.com/javase/7/docs/api/java/sql/Date.html
To conform with the definition of SQL DATE, the millisecond values wrapped
by a java.sql.Date instance must be 'normalized' by setting the hours, minutes,
seconds, and milliseconds to zero in the particular time zone with which the
instance is associated.
While user can create whatever [[java.sql.Date]] instance to a certain
milliseconds, this would lead to some potential problems. Also, the built-in
comparing method will compare milliseconds, which is not right, as within the
same day in different location, we have difference timezone. So we provide our
own Date type here, 100% compatible with Hive.
---
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]