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

BETWEEN is broken after using KRYO

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      After taking in HIVE-1511, HIVE-5422, and HIVE-5257 on top of Hive 0.12 to use Kryo, queries with BETWEEN start to fail with the following exception:

      com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor): org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableConstantBooleanObjectInspector
      Serialization trace:
      argumentOIs (org.apache.hadoop.hive.ql.udf.generic.GenericUDFBetween)
      genericUDF (org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc)
      filters (org.apache.hadoop.hive.ql.plan.JoinDesc)
      conf (org.apache.hadoop.hive.ql.exec.JoinOperator)
      reducer (org.apache.hadoop.hive.ql.plan.ReduceWork)
      at com.esotericsoftware.kryo.Kryo.newInstantiator(Kryo.java:1097)
      at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1109)
      at com.esotericsoftware.kryo.serializers.FieldSerializer.create(FieldSerializer.java:526)
      ...

      A workaround is to replace BETWEEN with >= and <=, but I think this failure is a bug and not by design.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ericchu30 Eric Chu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: