You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Pallavi Singh (JIRA)" <ji...@apache.org> on 2017/08/28 08:09:02 UTC

[jira] [Created] (CARBONDATA-1411) Show Segment command gives Null Pointer Exception after the table is updated

Pallavi Singh created CARBONDATA-1411:
-----------------------------------------

             Summary: Show Segment command gives Null Pointer Exception after the table is updated
                 Key: CARBONDATA-1411
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1411
             Project: CarbonData
          Issue Type: Bug
    Affects Versions: 1.2.0
         Environment: Linux, Hadoop 2.2.0 and spark 2.1.0
            Reporter: Pallavi Singh
             Fix For: 1.2.0


I created a table :
CREATE TABLE uniqdata (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 ("TABLE_BLOCKSIZE"= "256 MB")

and loaded the table : 
LOAD DATA inpath 'hdfs://localhost:54310/data/2000_UniqData.csv' INTO table uniqdata options('DELIMITER'=',', 'FILEHEADER'='CUST_ID, CUST_NAME, ACTIVE_EMUI_VERSION, DOB, DOJ, BIGINT_COLUMN1, BIGINT_COLUMN2, DECIMAL_COLUMN1, DECIMAL_COLUMN2, Double_COLUMN1, Double_COLUMN2, INTEGER_COLUMN1')

I loaded the table 7 times using multiple cvs.

Then executed the following command :

show segments for table uniqdata;

and output was :

0: jdbc:hive2://localhost:10000> show segments for table uniqdata;
+--------------------+------------+--------------------------+--------------------------+--+
| SegmentSequenceId  |   Status   |     Load Start Time      |      Load End Time       |
+--------------------+------------+--------------------------+--------------------------+--+
| 5                  | Success    | 2017-08-28 13:19:01.779  | 2017-08-28 13:19:02.527  |
| 4                  | Success    | 2017-08-28 13:18:58.597  | 2017-08-28 13:18:59.339  |
| 3                  | Compacted  | 2017-08-28 13:18:48.341  | 2017-08-28 13:18:49.527  |
| 2                  | Compacted  | 2017-08-28 13:18:44.96   | 2017-08-28 13:18:46.222  |
| 1                  | Compacted  | 2017-08-28 13:17:56.818  | 2017-08-28 13:17:57.988  |
| 0.1                | Success    | 2017-08-28 13:18:49.698  | 2017-08-28 13:18:50.659  |
| 0                  | Compacted  | 2017-08-28 13:17:41.944  | 2017-08-28 13:17:43.564  |
+--------------------+------------+--------------------------+--------------------------+--+

now after that I executed the following query :

update uniqdata set (dob)=('2016-12-31 12:00:00') where cust_name='CUST_NAME_01998';

and then again ran : show segments for table uniqdata;

And now I am getting : Error: java.lang.NullPointerException (state=,code=0)





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