[jira] [Updated] (CARBONDATA-582) Able to create table When Number Of Buckets is Given in negative

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (CARBONDATA-582) Able to create table When Number Of Buckets is Given in negative

Akash R Nilugal (Jira)

     [ https://issues.apache.org/jira/browse/CARBONDATA-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

anubhav tarar updated CARBONDATA-582:
-------------------------------------
    Description:
In carbon data i create a table with number of buckets specified as a negative number
here are the logs
jdbc:hive2://localhost:10000>
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
 


  was:
In carbon data i create a table with number of buckets specified as a negative number
here are the logs
jdbc:hive2://localhost:10000>
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)
 



> Able to create table When Number Of Buckets is Given in negative
> ----------------------------------------------------------------
>
>                 Key: CARBONDATA-582
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-582
>             Project: CarbonData
>          Issue Type: Bug
>            Reporter: anubhav tarar
>
> In carbon data i create a table with number of buckets specified as a negative number
> here are the logs
> jdbc:hive2://localhost:10000>
> 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
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)