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 CDCFA17C63 for ; Thu, 6 Nov 2014 01:17:55 +0000 (UTC) Received: (qmail 8138 invoked by uid 500); 6 Nov 2014 01:17:55 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 8107 invoked by uid 500); 6 Nov 2014 01:17: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 8097 invoked by uid 99); 6 Nov 2014 01:17:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 01:17: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; Thu, 06 Nov 2014 01:17:54 +0000 Received: (qmail 5601 invoked by uid 99); 6 Nov 2014 01:17:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 01:17:34 +0000 Date: Thu, 6 Nov 2014 01:17:33 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-1642) flatten function is dropping the last record when the json file contains even no of records 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 Rahul Challapalli created DRILL-1642: ---------------------------------------- Summary: flatten function is dropping the last record when the json file contains even no of records Key: DRILL-1642 URL: https://issues.apache.org/jira/browse/DRILL-1642 Project: Apache Drill Issue Type: Bug Reporter: Rahul Challapalli Attachments: flatten.json git.commit.id.abbrev=5adadfa The below query does not produce the right output. It is missing the last record from the data file. The record count is even for the data set. However if it is odd, the flatten operator has not issues . {code} 0: jdbc:drill:schema=dfs> select rownum, flatten(complex) from `flatten.json`; +------------+------------+ | rownum | EXPR$1 | +------------+------------+ | 1 | {"col1":3} | | 1 | {"col2":2,"col3":1} | | 1 | {"col1":7} | | 2 | {"col2":2,"col3":1} | | 2 | {"col1":7} | | 3 | {"col1":2,"col3":1} | +------------+------------+ {code} Attached the data file. Let me know if you need anything more. -- This message was sent by Atlassian JIRA (v6.3.4#6332)