You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Venki Korukanti (JIRA)" <ji...@apache.org> on 2014/06/10 23:05:01 UTC

[jira] [Commented] (DRILL-537) Reading from hive fails with nullpointerexception for certain values/types

    [ https://issues.apache.org/jira/browse/DRILL-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14027010#comment-14027010 ] 

Venki Korukanti commented on DRILL-537:
---------------------------------------

Tested on latest master. No longer repros.

{code}
> select * from alldrilltypes;
+------------+------------+------------+------------+------------+------------+------------+------------+------------+
|     c1     |     c2     |     c3     |     c4     |     c9     |    c10     |    c11     |    c12     |    c19     |
+------------+------------+------------+------------+------------+------------+------------+------------+------------+
| null       | null       | null       | null       | null       | null       | null       | null       | null       |
| -1         | false      | -1.1       |            | -1         | -1         | -1.0       | -1         | null       |
| 1          | true       | 1.1        | 1          | 1          | 1          | 1.0        | 1          | [B@107e4a37 |
+------------+------------+------------+------------+------------+------------+------------+------------+------------+
{code}

> Reading from hive fails with nullpointerexception for certain values/types
> --------------------------------------------------------------------------
>
>                 Key: DRILL-537
>                 URL: https://issues.apache.org/jira/browse/DRILL-537
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Hive
>            Reporter: Ramana Inukonda Nagaraj
>            Assignee: Venki Korukanti
>             Fix For: 1.0.0-BETA1
>
>
> hive> desc alldrilltypes;
> OK
> c1                  	int                 	None                
> c2                  	boolean             	None                
> c3                  	double              	None                
> c4                  	string              	None                
> c9                  	tinyint             	None                
> c10                 	smallint            	None                
> c11                 	float               	None                
> c12                 	bigint              	None                
> c19                 	binary              	None           
> hive> select * from alldrilltypes;
> OK
> NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL
> -1	false	-1.1		-1	-1	-1.0	-1	NULL
> 1	true	1.1	1	1	1	1.0	1	abcd
> Time taken: 0.333 seconds, Fetched: 3 row(s)
> Now from Drill:
> SELECT c1,c2,c3,c4,c9,c10,c11,c12,c19 from alldrilltypes;
> Lilith log capture:
> java.lang.NullPointerException
> 	org.apache.drill.exec.store.hive.HiveRecordReader.setValue(HiveRecordReader.java:394) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.store.hive.HiveRecordReader.next(HiveRecordReader.java:446) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:94) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:42) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.next(ScreenCreator.java:85) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:83) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
> 	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
> 	java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]



--
This message was sent by Atlassian JIRA
(v6.2#6252)