GitHub user anubhav100 opened a pull request:
https://github.com/apache/incubator-carbondata/pull/512
[CARBONDATA-582]added validation for bucket number is not negative
when we create table with bucket number is specified in negative it creates
table
CREATE TABLE BucketTest1111352983(name int,ID string)USING
org.apache.spark.sql.CarbonSource OPTIONS("bucketnumber"="-1",
"bucketcolumns"="name1");
+---------+--+
| Result |
+---------+--+
+---------+--+
No rows selected (0.277 seconds)
this is because there is no check whether the bucket number given is
positive or not
in hive it gives a error
here are the logs in hive
hive> CREATE TABLE BucketTest1111352983(name int,ID string)USING
org.apache.spark.sql.CarbonSource OPTIONS("bucketnumber"="-1",
"bucketcolumns"="name1");
+---------+--+
| Result |
+---------+--+
+---------+--+
No rows selected (0.277 seconds)
in carbon data as well it should not allow this
in this pr we resolved this issue
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anubhav100/incubator-carbondata CARBONDATA-582
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/512.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 #512
----
commit d60b6a2e3a2775818019c8cce5d34e86641d909b
Author: anubhav100 <[email protected]>
Date: 2017-01-10T05:31:52Z
added validation for bucket number is not negative
----
---
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.
---