[ 
https://issues.apache.org/jira/browse/DRILL-4845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15419792#comment-15419792
 ] 

Matt Keranen commented on DRILL-4845:
-------------------------------------

The exception in this case was thrown when the last line of a large CSV file 
contained only "\."

Obviously bad data, but the exception gives no indication of where the problem 
was, or that bad data was the cause.

> Malformed CSV throws IllegalArgumentException
> ---------------------------------------------
>
>                 Key: DRILL-4845
>                 URL: https://issues.apache.org/jira/browse/DRILL-4845
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Text & CSV
>    Affects Versions: 1.6.0, 1.7.0
>         Environment: CentOS 7
>            Reporter: Matt Keranen
>
> When reading CSV data, if lines are malformed, often an error such as the 
> following is reported:
>     Error: SYSTEM ERROR: IllegalArgumentException: length: -15150 (expected: 
> >= 0)
> Neither the error message reported to the client (with verbose errors on), 
> nor on the drillbit describe what or where the problem is.
> Perhaps the CSV parser can throw exceptions that would help in locating what 
> in the source data is not parsing?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to