Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-1459

Error in using insert into in Carbonadata 1.2.0 while using tables loaded using CarbonData 1.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.0
    • None
    • data-query
    • None

    Description

      I have a table created and loaded in Carbondata 1.1.0 when I try to load data into a new table created using CarbonData 1.2.0 using insert into, the data load fails.

      insert into T_Carbon2 select * from T_Carbon1;

      We get the error :
      0: jdbc:hive2://localhost:10000> insert into T_Carbon2 select * from T_Carbon01;
      Error: java.lang.Exception: DataLoad failure (state=,code=0)

      here T_Carbon2 is loaded in 1.2.0, while T_Carbon1 is loaded in 1.1.0

      the queries are given below :

      create table T_Carbon01(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'

      create table T_Carbon2(Active_status String,Item_type_cd INT,Qty_day_avg INT,Qty_total INT,Sell_price BIGINT,Sell_pricep DOUBLE,Discount_price DOUBLE,Profit DECIMAL(3,2),Item_code String,Item_name String,Outlet_name String,Update_time TIMESTAMP,Create_date String)STORED BY 'org.apache.carbondata.format'

      LOAD DATA INPATH 'hdfs://localhost:54310/data/T_Hive1.csv' INTO table T_Carbon01 options ('DELIMITER'=',', 'QUOTECHAR'='\', 'FILEHEADER'='Active_status,Item_type_cd,Qty_day_avg,Qty_total,Sell_price,Sell_pricep,Discount_price,Profit,Item_code,Item_name,Outlet_name,Update_time,Create_date')

      Attachments

        Activity

          People

            Unassigned Unassigned
            pallavisingh_09 Pallavi Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: