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 546B517798 for ; Fri, 7 Nov 2014 03:20:55 +0000 (UTC) Received: (qmail 70011 invoked by uid 500); 7 Nov 2014 03:20:55 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 69982 invoked by uid 500); 7 Nov 2014 03:20:55 -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 69973 invoked by uid 99); 7 Nov 2014 03:20:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 03:20:55 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,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; Fri, 07 Nov 2014 03:20:53 +0000 Received: (qmail 66352 invoked by uid 99); 7 Nov 2014 03:20:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 03:20:33 +0000 Date: Fri, 7 Nov 2014 03:20:33 +0000 (UTC) From: "Venkata krishnan Sowrirajan (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-1646) Drill cannot handle empty array/list types in JSON documents 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-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201517#comment-14201517 ] Venkata krishnan Sowrirajan commented on DRILL-1646: ---------------------------------------------------- If the second record has actual data, then its not failing. Its giving the second record as result. I am seeing the same behavior as you said, the empty column it didn't treat as an existing column. Data { "a":[], "b":[1,2,3] } 0: jdbc:drill:> select * from `json/sample.json`; +------------+ | b | +------------+ | ["1","2","3"] | +------------+ 1 row selected (0.529 seconds) > Drill cannot handle empty array/list types in JSON documents > ------------------------------------------------------------ > > Key: DRILL-1646 > URL: https://issues.apache.org/jira/browse/DRILL-1646 > Project: Apache Drill > Issue Type: Improvement > Reporter: Venkata krishnan Sowrirajan > > To reproduce > JSON sample data: > { > "a":[] > } > Problem: Empty array > Exception: > java.lang.IllegalStateException: Incoming batch has an empty schema. This is not allowed -- This message was sent by Atlassian JIRA (v6.3.4#6332)