[
https://issues.apache.org/jira/browse/HIVE-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phabricator updated HIVE-4222:
------------------------------
Attachment: HIVE-4222.D9681.1.patch
navis requested code review of "HIVE-4222 [jira] Timestamp type constants
cannot be deserialized in JDK 1.6 or less".
Reviewers: JIRA
HIVE-4222 Timestamp type constants cannot be deserialized in JDK 1.6 or less
For example,
ExprNodeConstantDesc constant = new
ExprNodeConstantDesc(TypeInfoFactory.timestampTypeInfo, new Timestamp(100));
String serialized = Utilities.serializeExpression(constant);
ExprNodeConstantDesc deserilized = (ExprNodeConstantDesc)
Utilities.deserializeExpression(serialized, new Configuration());
logs error message
java.lang.InstantiationException: java.sql.Timestamp
Continuing ...
java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...
and makes NPE in final.
TEST PLAN
EMPTY
REVISION DETAIL
https://reviews.facebook.net/D9681
AFFECTED FILES
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
ql/src/test/org/apache/hadoop/hive/ql/exec/TestUtilities.java
MANAGE HERALD RULES
https://reviews.facebook.net/herald/view/differential/
WHY DID I GET THIS EMAIL?
https://reviews.facebook.net/herald/transcript/23121/
To: JIRA, navis
> Timestamp type constants cannot be deserialized in JDK 1.6 or less
> ------------------------------------------------------------------
>
> Key: HIVE-4222
> URL: https://issues.apache.org/jira/browse/HIVE-4222
> Project: Hive
> Issue Type: Bug
> Components: Types
> Reporter: Navis
> Assignee: Navis
> Attachments: HIVE-4222.D9681.1.patch
>
>
> For example,
> {noformat}
> ExprNodeConstantDesc constant = new
> ExprNodeConstantDesc(TypeInfoFactory.timestampTypeInfo, new Timestamp(100));
> String serialized = Utilities.serializeExpression(constant);
> ExprNodeConstantDesc deserilized = (ExprNodeConstantDesc)
> Utilities.deserializeExpression(serialized, new Configuration());
> {noformat}
> logs error message
> {noformat}
> java.lang.InstantiationException: java.sql.Timestamp
> Continuing ...
> java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
> Continuing ...
> {noformat}
> and makes NPE in final.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira