[ 
https://issues.apache.org/jira/browse/DRILL-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Venki Korukanti updated DRILL-1398:
-----------------------------------
    Attachment: DRILL-1398-HivePartitionBug.patch

> Clone HivePartition only when InputSplit has non-null partition in 
> InputSplit->Partition map
> --------------------------------------------------------------------------------------------
>
>                 Key: DRILL-1398
>                 URL: https://issues.apache.org/jira/browse/DRILL-1398
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Venki Korukanti
>            Assignee: Venki Korukanti
>         Attachments: DRILL-1398-HivePartitionBug.patch
>
>
> If we try to clone HivePartition with a null source, during deserialization 
> of fragment we end up with a NPE:
> {code}
> 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]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to