GitHub user Zhangshunyu opened a pull request:

    https://github.com/apache/incubator-carbondata/pull/84

    [CARBONDATA-167]Fix UndeclaredThrowableException thrown instead of data 
loading fail when fileheader has unsupported characters in file/command

    ## Why raise this pr:
    For bug fix:
    When create a table named test and execute
    ` LOAD DATA INPATH  'hdfs://hacluster/test/chetan/vardhan.csv' INTO table 
test OPTIONS('DELIMITER'= ',' ,'QUOTECHAR'= '"', 'FILEHEADER '='~');` the 
fileheader is not proper and
     It will throws exception like:
    `Error: java.lang.reflect.UndeclaredThrowableException (state=,code=0)`
    Actually it should tell "DataLoad failed" to user instead of throws such an 
exception.
    
    ## How to solve:
    
    Catch the Exception who would be treated as UndeclaredThrowableException 
and create a new DataLoadingException to throw to beeline whose message 
contains "DataLoad failed".

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Zhangshunyu/incubator-carbondata newexc

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-carbondata/pull/84.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #84
    
----
commit 11bfc7b3528c19412cef370cb1b8342f7f7eba85
Author: Zhangshunyu <[email protected]>
Date:   2016-08-22T13:22:04Z

    fix the bug of load exception

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to