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

Timestamp type constants cannot be deserialized in JDK 1.6 or less

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: