Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5A63D200C2C for ; Fri, 3 Mar 2017 08:23:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 591B3160B6D; Fri, 3 Mar 2017 07:23:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A0911160B57 for ; Fri, 3 Mar 2017 08:23:48 +0100 (CET) Received: (qmail 93487 invoked by uid 500); 3 Mar 2017 07:23:47 -0000 Mailing-List: contact issues-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list issues@carbondata.incubator.apache.org Received: (qmail 93478 invoked by uid 99); 3 Mar 2017 07:23:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 07:23:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4DAC4C047B for ; Fri, 3 Mar 2017 07:23:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.547 X-Spam-Level: X-Spam-Status: No, score=-1.547 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id mWECcwuVZFVO for ; Fri, 3 Mar 2017 07:23:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 468145FC00 for ; Fri, 3 Mar 2017 07:23:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BC745E04E7 for ; Fri, 3 Mar 2017 07:23:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 50E802415E for ; Fri, 3 Mar 2017 07:23:45 +0000 (UTC) Date: Fri, 3 Mar 2017 07:23:45 +0000 (UTC) From: "Ravindra Pesala (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CARBONDATA-738) Able to load dataframe with boolean type in a carbon table but with null values MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Mar 2017 07:23:49 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ravindra Pesala resolved CARBONDATA-738. ---------------------------------------- Resolution: Fixed Fix Version/s: 1.0.1-incubating > Able to load dataframe with boolean type in a carbon table but with null values > ------------------------------------------------------------------------------- > > Key: CARBONDATA-738 > URL: https://issues.apache.org/jira/browse/CARBONDATA-738 > Project: CarbonData > Issue Type: Bug > Components: spark-integration > Affects Versions: 1.0.0-incubating > Environment: spark 1.6,spark 2.1 > Reporter: anubhav tarar > Assignee: anubhav tarar > Priority: Trivial > Fix For: 1.0.1-incubating > > Time Spent: 40m > Remaining Estimate: 0h > > i created a dataframe with boolean type as follows > case class People(name: String, occupation: String, consultant: Boolean) > val people = List(People("sangeeta", "engineer", true), People("pallavi", "consultant", true)) > val peopleRDD: RDD[People] = cc.sc.parallelize(people) > val peopleDF: DataFrame = peopleRDD.toDF("name", "occupation", "id") > peopleDF.write > .format("carbondata") > .option("tableName", "carbon2") > .option("compress", "true") > .mode(SaveMode.Overwrite) > .save() > cc.sql("SELECT * FROM carbon2").show() > currently boolean type is not supported in carbon data but table gets created > but it shows me null values > +--------+----------+----+ > | name|occupation| id| > +--------+----------+----+ > | pallavi|consultant|null| > |sangeeta| engineer|null| > +--------+----------+----+ > for boolean type it should throw unsupported type exception > there is problem with carbondataframe writer -- This message was sent by Atlassian JIRA (v6.3.15#6346)