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 BED8018613 for ; Fri, 24 Jul 2015 04:25:04 +0000 (UTC) Received: (qmail 27555 invoked by uid 500); 24 Jul 2015 04:25:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 27523 invoked by uid 500); 24 Jul 2015 04:25:04 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 27513 invoked by uid 99); 24 Jul 2015 04:25:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 04:25:04 +0000 Date: Fri, 24 Jul 2015 04:25:04 +0000 (UTC) From: "Parth Chandra (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3551) CTAS from complex Json source with schema change is not written (and hence not read back ) correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-3551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Chandra updated DRILL-3551: --------------------------------- Attachment: sb.json > CTAS from complex Json source with schema change is not written (and hence not read back ) correctly > ----------------------------------------------------------------------------------------------------- > > Key: DRILL-3551 > URL: https://issues.apache.org/jira/browse/DRILL-3551 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types > Affects Versions: 1.1.0 > Reporter: Parth Chandra > Assignee: Hanifi Gunes > Priority: Critical > Fix For: 1.2.0 > > > The source data contains - > 20K rows with the following - > {"some":"yes","others":{"other":"true","all":"false","sometimes":"yes"}} > 200 rows with the following - > {"some":"yes","others":{"other":"true","all":"false","sometimes":"yes","additional":"last > entries only"}} > Creating a table and reading it back returns incorrect data - > CREATE TABLE testparquet as select * from `test.json`; > SELECT * from testparquet; > Yields > | yes | {"other":"true","all":"false","sometimes":"yes"} | > | yes | {"other":"true","all":"false","sometimes":"yes"} | > | yes | {"other":"true","all":"false","sometimes":"yes"} | > | yes | {"other":"true","all":"false","sometimes":"yes"} | > The "additional" field is missing in all records > Parquet metadata for the created file does not have the 'additional' field -- This message was sent by Atlassian JIRA (v6.3.4#6332)