You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Abhishek Girish (JIRA)" <ji...@apache.org> on 2015/05/08 15:54:00 UTC

[jira] [Commented] (DRILL-1615) Drill throws NPE on select * when JSON All-Text-Mode is turned on

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

Abhishek Girish commented on DRILL-1615:
----------------------------------------

This has been functional since a long time now and has been tested thoroughly. Closing. 

> Drill throws NPE on select * when JSON All-Text-Mode is turned on
> -----------------------------------------------------------------
>
>                 Key: DRILL-1615
>                 URL: https://issues.apache.org/jira/browse/DRILL-1615
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Abhishek Girish
>            Assignee: Jason Altekruse
>             Fix For: 0.7.0
>
>
> > alter system set `store.json.all_text_mode` = true
> > select * from `textmode.json` limit 1;
> +------------+------------+------------+------------+------------+
> |  field_1   |  field_2   |  field_3   |  field_4   |  field_5   |
> +------------+------------+------------+------------+------------+
> java.lang.NullPointerException
> at org.apache.drill.exec.vector.UInt4Vector$Accessor.get(UInt4Vector.java:297)
> at org.apache.drill.exec.vector.RepeatedVarCharVector$Accessor.getObject(RepeatedVarCharVector.java:326)
> at org.apache.drill.exec.vector.RepeatedVarCharVector$Accessor.getObject(RepeatedVarCharVector.java:305)
> at org.apache.drill.exec.vector.complex.MapVector$Accessor.getObject(MapVector.java:368)
> at org.apache.drill.exec.vector.accessor.GenericAccessor.getObject(GenericAccessor.java:38)
> at org.apache.drill.jdbc.AvaticaDrillSqlAccessor.getObject(AvaticaDrillSqlAccessor.java:136)
> at net.hydromatic.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:351)
> at sqlline.SqlLine$Rows$Row.<init>(SqlLine.java:2388)
> at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2504)
> at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
> at sqlline.SqlLine.print(SqlLine.java:1809)
> at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
> at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
> at sqlline.SqlLine.dispatch(SqlLine.java:889)
> at sqlline.SqlLine.begin(SqlLine.java:763)
> at sqlline.SqlLine.start(SqlLine.java:498)
> at sqlline.SqlLine.main(SqlLine.java:460)



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