Hive
  1. Hive
  2. HIVE-4222

Timestamp type constants cannot be deserialized in JDK 1.6 or less

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: Types
    • Labels:
      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.

      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

          Navis created issue -
          Navis made changes -
          Field Original Value New Value
          Status Open [ 1 ] Patch Available [ 10002 ]
          Phabricator made changes -
          Attachment HIVE-4222.D9681.1.patch [ 12575179 ]
          Jason Dere made changes -
          Attachment HIVE-4222.D9681.2.patch [ 12593648 ]
          Jason Dere made changes -
          Attachment HIVE-4222.D9681.3.patch [ 12593736 ]
          Edward Capriolo made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Assignee Navis [ navis ]
          Fix Version/s 0.12.0 [ 12324312 ]
          Resolution Fixed [ 1 ]
          Ashutosh Chauhan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Navis made changes -
          Link This issue duplicates HIVE-3739 [ HIVE-3739 ]
          Brock Noland made changes -
          Link This issue relates to HIVE-5263 [ HIVE-5263 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Navis
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development