[jira] [Created] (CARBONDATA-1714) Carbon1.3.0-Alter Table - Select columns with is null and limit throws ArrayIndexOutOfBoundsException after multiple alter

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

[jira] [Created] (CARBONDATA-1714) Carbon1.3.0-Alter Table - Select columns with is null and limit throws ArrayIndexOutOfBoundsException after multiple alter

Akash R Nilugal (Jira)
Chetan Bhat created CARBONDATA-1714:
---------------------------------------

             Summary: Carbon1.3.0-Alter Table - Select columns with is null and limit throws ArrayIndexOutOfBoundsException after multiple alter
                 Key: CARBONDATA-1714
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1714
             Project: CarbonData
          Issue Type: Bug
          Components: data-query
    Affects Versions: 1.3.0
         Environment: 3 node ant cluster- SUSE 11 SP4
            Reporter: Chetan Bhat


Steps -
Execute the below queries in sequence.
create database test;
use test;
CREATE TABLE uniqdata111785 (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1 int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='INTEGER_COLUMN1,CUST_ID');
LOAD DATA INPATH 'hdfs://hacluster/chetan/2000_UniqData.csv' into table uniqdata111785 OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1');
alter table test.uniqdata111785 RENAME TO  uniqdata1117856;
select * from test.uniqdata1117856 limit 100;
ALTER TABLE test.uniqdata1117856 ADD COLUMNS (cust_name1 int);
select * from test.uniqdata1117856 where cust_name1 is null limit 100;
ALTER TABLE test.uniqdata1117856 DROP COLUMNS (cust_name1);
select * from test.uniqdata1117856 where cust_name1 is null limit 100;
ALTER TABLE test.uniqdata1117856 CHANGE CUST_ID CUST_ID BIGINT;
select * from test.uniqdata1117856 where CUST_ID in (10013,10011,10000,10019) limit 10;
ALTER  TABLE test.uniqdata1117856 ADD COLUMNS (a1 INT, b1 STRING) TBLPROPERTIES('DICTIONARY_EXCLUDE'='b1');
select a1,b1 from test.uniqdata1117856  where a1 is null and b1 is null limit 100;

Actual Issue : Select columns with is null and limit throws ArrayIndexOutOfBoundsException after multiple alter operations.
0: jdbc:hive2://10.18.98.34:23040> select a1,b1 from test.uniqdata1117856  where a1 is null and b1 is null limit 100;
Error: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 9.0 failed 4 times, most recent failure: Lost task 0.3 in stage 9.0 (TID 14, BLR1000014269, executor 2): java.lang.ArrayIndexOutOfBoundsException: 7
        at org.apache.carbondata.core.scan.model.QueryModel.setDimAndMsrColumnNode(QueryModel.java:223)
        at org.apache.carbondata.core.scan.model.QueryModel.processFilterExpression(QueryModel.java:172)
        at org.apache.carbondata.core.scan.model.QueryModel.processFilterExpression(QueryModel.java:181)
        at org.apache.carbondata.hadoop.util.CarbonInputFormatUtil.processFilterExpression(CarbonInputFormatUtil.java:118)
        at org.apache.carbondata.hadoop.api.CarbonTableInputFormat.getQueryModel(CarbonTableInputFormat.java:791)
        at org.apache.carbondata.spark.rdd.CarbonScanRDD.internalCompute(CarbonScanRDD.scala:250)
        at org.apache.carbondata.spark.rdd.CarbonRDD.compute(CarbonRDD.scala:60)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
        at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
        at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
        at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
        at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
        at org.apache.spark.scheduler.Task.run(Task.scala:99)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:282)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Driver stacktrace: (state=,code=0)


Expected : The select query should be successful after multiple alter operations.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)