Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1398

Clone HivePartition only when InputSplit has non-null partition in InputSplit->Partition map

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • None
    • None

    Description

      If we try to clone HivePartition with a null source, during deserialization of fragment we end up with a NPE:

      java.lang.NullPointerException: null
      	at org.apache.drill.exec.store.hive.HiveTable$HivePartition.<init>(HiveTable.java:149) ~[drill-storage-hive-core-0.5.0-incubating-SNAPSHOT.jar:0.5.0-incubating-SNAPSHOT]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_60]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_60]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_60]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_60]
      	at com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:125) ~[jackson-databind-2.2.0.jar:2.2.0]
      	at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:240) ~[jackson-databind-2.2.0.jar:2.2.0]
      	at com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.build(PropertyBasedCreator.java:158) ~[jackson-databind-2.2.0.jar:2.2.0]
      

      Attachments

        1. DRILL-1398-HivePartitionBug.patch
          1 kB
          Venki Korukanti

        Issue Links

          Activity

            People

              DrillCommitter DrillCommitter
              vkorukanti Venki Korukanti
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: