GitHub user anubhav100 opened a pull request:
https://github.com/apache/incubator-carbondata/pull/621
[CARBONDATA-738] resolved bug for Able to load dataframe with boolean type
in a carbonâ¦
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 it is not
supported in carbon data
there is problem with carbondataframe writer
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anubhav100/incubator-carbondata CARBONDATA-738
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/621.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #621
----
commit b4a6d27dff062f6fecc1b542d684efa5317e2da5
Author: anubhav100 <[email protected]>
Date: 2017-03-02T10:09:38Z
resolved bug for Able to load dataframe with boolean type in a carbon table
but with null values
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---