wecharyu opened a new pull request, #5287: URL: https://github.com/apache/hive/pull/5287
### What changes were proposed in this pull request? Support `java.sql.Date` and `java.sql.Timestamp` objects in JavaXXXObjectInspector. ### Why are the changes needed? The old clients before HIVE-20007 convert date value to `java.sql.Date` and timestamp value to `java.sql.Timestamp`, but the new HMS only accept internal `Date` and `Timestamp` while deserialize the expressions, which would cause `ClassCastException`. ### Does this PR introduce _any_ user-facing change? No. ### Is the change a dependency upgrade? No. ### How was this patch tested? Add new unit test: ```bash mvn test -Dtest.groups= -Dtest=org.apache.hadoop.hive.serde2.objectinspector.primitive.TestPrimitiveObjectInspectorUtils -pl :hive-serde ``` -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org