GitHub user anubhav100 opened a pull request:
https://github.com/apache/incubator-carbondata/pull/630
[CARBONDATA-730]added decimal type in carbon data frame writer
Below exception is thrown while trying to save dataframe with a decimal
column type.
scala> df.printSchema
â account: integer (nullable = true)
â currency: integer (nullable = true)
â branch: integer (nullable = true)
â country: integer (nullable = true)
â date: date (nullable = true)
â fcbalance: decimal(16,3) (nullable = true)
â lcbalance: decimal(16,3) (nullable = true)
scala> df.write.format("carbondata").option("tableName",
"accBal").option("compress", "true").mode(SaveMode.Overwrite).save()
java.lang.RuntimeException: unsupported type: DecimalType(16,3)
at scala.sys.package$.error(package.scala:27)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anubhav100/incubator-carbondata CARBONDATA-730
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/630.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 #630
----
commit acd67332af60ad78dd93c1897ad31af4621c237e
Author: anubhav100 <[email protected]>
Date: 2017-03-06T12:39:55Z
added decimal type in carbon data frame writer
----
---
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.
---