You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/22 13:32:20 UTC
[jira] [Commented] (CARBONDATA-167) UndeclaredThrowableException
thrown instead of data loading fail when fileheader has unsupported
characters in file/command
[ https://issues.apache.org/jira/browse/CARBONDATA-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430752#comment-15430752 ]
ASF GitHub Bot commented on CARBONDATA-167:
-------------------------------------------
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 <zh...@huawei.com>
Date: 2016-08-22T13:22:04Z
fix the bug of load exception
----
> UndeclaredThrowableException thrown instead of data loading fail when fileheader has unsupported characters in file/command
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: CARBONDATA-167
> URL: https://issues.apache.org/jira/browse/CARBONDATA-167
> Project: CarbonData
> Issue Type: Bug
> Reporter: zhangshunyu
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)