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

Timestamp type constants cannot be deserialized in JDK 1.6 or less

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: