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 62B66200C00 for ; Wed, 18 Jan 2017 08:26:34 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 61661160B44; Wed, 18 Jan 2017 07:26:34 +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 AAE98160B3A for ; Wed, 18 Jan 2017 08:26:33 +0100 (CET) Received: (qmail 88436 invoked by uid 500); 18 Jan 2017 07:26:32 -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 88427 invoked by uid 99); 18 Jan 2017 07:26:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 07:26:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 671DB18066C for ; Wed, 18 Jan 2017 07:26:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dHHCeQOP6IRs for ; Wed, 18 Jan 2017 07:26:31 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6BFCC5F2EF for ; Wed, 18 Jan 2017 07:26:30 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EF54DE865F for ; Wed, 18 Jan 2017 07:26:27 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 849C42528A for ; Wed, 18 Jan 2017 07:26:26 +0000 (UTC) Date: Wed, 18 Jan 2017 07:26:26 +0000 (UTC) From: "Mohammad Shahid Khan (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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, 18 Jan 2017 07:26:34 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15827539#comment-15827539 ] Mohammad Shahid Khan commented on CARBONDATA-422: ------------------------------------------------- [~Sourya] Please attach the raw csv file > [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 > Assignee: Mohammad Shahid Khan > Priority: Minor > > 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)