Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53B2A200BF3 for ; Wed, 21 Dec 2016 13:22:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 52721160B0C; Wed, 21 Dec 2016 12:22:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9AD36160B26 for ; Wed, 21 Dec 2016 13:22:02 +0100 (CET) Received: (qmail 65455 invoked by uid 500); 21 Dec 2016 12:22:01 -0000 Mailing-List: contact issues-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list issues@carbondata.incubator.apache.org Received: (qmail 65446 invoked by uid 99); 21 Dec 2016 12:22:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2016 12:22:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5F82D1A0676 for ; Wed, 21 Dec 2016 12:22:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id tdqlgt2W63Uf for ; Wed, 21 Dec 2016 12:22:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 5A84D5F405 for ; Wed, 21 Dec 2016 12:21:59 +0000 (UTC) Received: (qmail 65175 invoked by uid 99); 21 Dec 2016 12:21:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2016 12:21:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 68B6D2C1F54 for ; Wed, 21 Dec 2016 12:21:58 +0000 (UTC) Date: Wed, 21 Dec 2016 12:21:58 +0000 (UTC) From: "Anurag Srivastava (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CARBONDATA-422) [Bad Records]Select query failed with "NullPointerException" after data-load with options as MAXCOLUMN and BAD_RECORDS_ACTION MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 21 Dec 2016 12:22:03 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Srivastava updated CARBONDATA-422: ----------------------------------------- Attachment: Screenshot2.png > [Bad Records]Select query failed with "NullPointerException" after data-load with options as MAXCOLUMN and BAD_RECORDS_ACTION > ----------------------------------------------------------------------------------------------------------------------------- > > Key: CARBONDATA-422 > URL: https://issues.apache.org/jira/browse/CARBONDATA-422 > Project: CarbonData > Issue Type: Bug > Components: data-query > Affects Versions: 0.1.1-incubating > Environment: 3 node Cluster > Reporter: SOURYAKANTA DWIVEDY > Priority: Minor > Attachments: Screenshot2.png > > > Description : Select query failed with "NullPointerException" after data-load with options as MAXCOLUMN and BAD_RECORDS_ACTION > Steps: > 1. Create table > 2. Load data into table with BAD_RECORDS_ACTION option [ Create Table -- columns -9 ,CSV coulmn - 10 , Header - 9] > 3. Do select * query ,it will pass > 4. Then Load data into table with BAD_RECORDS_ACTION and MAXCOLUMN option [ Create Table -- columns -9 ,CSV coulmn - 10 , Header - 9,MAXCOLUMNS -- 9] > 5. Do select * query ,it will fail with "NullPointerException" > Log :- > ------- > 0: jdbc:hive2://ha-cluster/default> create table emp3(ID int,Name string,DOJ timestamp,Designation string,Salary double,Dept string,DOB timestamp,Addr string,Gender string) STORED BY 'org.apache.carbondata.format'; > +---------+--+ > | result | > +---------+--+ > +---------+--+ > No rows selected (0.589 seconds) > 0: jdbc:hive2://ha-cluster/default> LOAD DATA inpath 'hdfs://hacluster/chetan/emp11.csv' into table emp3 options('DELIMITER'=',', 'QUOTECHAR'='"','FILEHEADER'='ID,Name,DOJ,Designation,Salary,Dept,DOB,Addr,Gender', 'BAD_RECORDS_ACTION'='FORCE'); > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (2.415 seconds) > 0: jdbc:hive2://ha-cluster/default> select * from emp3; > +-------+-------+-------+--------------+----------+-------+-------+------------+---------+--+ > | id | name | doj | designation | salary | dept | dob | addr | gender | > +-------+-------+-------+--------------+----------+-------+-------+------------+---------+--+ > | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | > | 1 | AAA | NULL | Trainee | 10000.0 | IT | NULL | Pune | Male | > | 2 | BBB | NULL | SE | 30000.0 | NW | NULL | Bangalore | Female | > | 3 | CCC | NULL | SSE | 40000.0 | DATA | NULL | Mumbai | Female | > | 4 | DDD | NULL | TL | 60000.0 | OPER | NULL | Delhi | Male | > | 5 | EEE | NULL | STL | 80000.0 | MAIN | NULL | Chennai | Female | > | 6 | FFF | NULL | Trainee | 10000.0 | IT | NULL | Pune | Male | > | 7 | GGG | NULL | SE | 30000.0 | NW | NULL | Bangalore | Female | > | 8 | HHH | NULL | SSE | 40000.0 | DATA | NULL | Mumbai | Female | > | 9 | III | NULL | TL | 60000.0 | OPER | NULL | Delhi | Male | > | 10 | JJJ | NULL | STL | 80000.0 | MAIN | NULL | Chennai | Female | > | NULL | Name | NULL | Designation | NULL | Dept | NULL | Addr | Gender | > +-------+-------+-------+--------------+----------+-------+-------+------------+---------+--+ > 12 rows selected (0.418 seconds) > 0: jdbc:hive2://ha-cluster/default> LOAD DATA inpath 'hdfs://hacluster/chetan/emp11.csv' into table emp3 options('DELIMITER'=',', 'QUOTECHAR'='"','FILEHEADER'='ID,Name,DOJ,Designation,Salary,Dept,DOB,Addr,Gender','MAXCOLUMNS'='9', 'BAD_RECORDS_ACTION'='FORCE'); > +---------+--+ > | Result | > +---------+--+ > +---------+--+ > No rows selected (1.424 seconds) > 0: jdbc:hive2://ha-cluster/default> select * from emp3; > Error: java.io.IOException: java.lang.NullPointerException (state=,code=0) > 0: jdbc:hive2://ha-cluster/default> -- This message was sent by Atlassian JIRA (v6.3.4#6332)