Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4222

Timestamp type constants cannot be deserialized in JDK 1.6 or less

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • Types
    • None

    Description

      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.

      Attachments

        1. HIVE-4222.D9681.1.patch
          7 kB
          Phabricator
        2. HIVE-4222.D9681.2.patch
          7 kB
          Jason Dere
        3. HIVE-4222.D9681.3.patch
          7 kB
          Jason Dere

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            navis Navis Ryu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment