Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D2E410992 for ; Tue, 25 Nov 2014 00:56:37 +0000 (UTC) Received: (qmail 27567 invoked by uid 500); 25 Nov 2014 00:56:37 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 27541 invoked by uid 500); 25 Nov 2014 00:56:37 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 27532 invoked by uid 99); 25 Nov 2014 00:56:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 00:56:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 25 Nov 2014 00:56:14 +0000 Received: (qmail 25517 invoked by uid 99); 25 Nov 2014 00:56:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 00:56:12 +0000 Date: Tue, 25 Nov 2014 00:56:12 +0000 (UTC) From: "Jason Altekruse (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-1728) Exception on REPEATED_CONTAINS query MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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)