[ https://issues.apache.org/jira/browse/DRILL-1728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14223875#comment-14223875 ]
Jason Altekruse commented on DRILL-1728: ---------------------------------------- This is an issue with the JSON reader and particular how JSON conflicts with the current Drill data model. The yelp dataset has a field that in most cases is true or false, but for some odd reason they also store the empty object {} at this position in some records. We currently have no way of supporting this type of schema change. Drill needs to produce a more meaningful error message in these cases. I have been meaning to fix this, so as this is not actually a bug in repeated_contains I am going to change the title rather than close this bug an open a new one. I have opened a separate issue to track the spelling error, it's a minor fix but I don't want to include it in the patch for this: Drill-1777 > Exception on REPEATED_CONTAINS query > ------------------------------------ > > Key: DRILL-1728 > URL: https://issues.apache.org/jira/browse/DRILL-1728 > Project: Apache Drill > Issue Type: Bug > Reporter: Tomer Shiran > Assignee: Jason Altekruse > Fix For: 0.7.0 > > > {code} > 0: jdbc:drill:zk=localhost:2181> SELECT * FROM > dfs.root.`Users/tshiran/Development/demo/data/yelp/business.json` WHERE true > and REPEATED_CONTAINS(categories, 'Australian'); > +-------------+--------------+------------+------------+------------+------------+--------------+------------+------------+------------+------------+------------+------------+------------+---------------+ > | business_id | full_address | hours | open | categories | city > | review_count | name | longitude | state | stars | > latitude | attributes | type | neighborhoods | > +-------------+--------------+------------+------------+------------+------------+--------------+------------+------------+------------+------------+------------+------------+------------+---------------+ > Query failed: Query stopeed., You tried to start when you are using a > ValueWriter of type NullableBitWriterImpl. [ > e5bafa1e-6226-443d-80fd-51e18f330899 on 172.17.3.132:31010 ] > java.lang.RuntimeException: java.sql.SQLException: Failure while executing > query. > at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2514) > 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) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)