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

Neal Richardson commented on ARROW-6003:
----------------------------------------

Seems better now. Rerunning the example from above:

{code}
> library(arrow)
> tf <- tempfile()
> write.table(iris, tf, sep = ",", row.names = FALSE, col.names = FALSE)
> reader <- CsvTableReader$create(tf, 
> read_options=CsvReadOptions$create(column_names="just one name"))
> reader$Read()
Error in csv___TableReader__Read(self) : 
  Invalid: CSV parse error: Expected 1 columns, got 5
{code}

> [C++] Better input validation and error messaging in CSV reader
> ---------------------------------------------------------------
>
>                 Key: ARROW-6003
>                 URL: https://issues.apache.org/jira/browse/ARROW-6003
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, R
>            Reporter: Neal Richardson
>            Priority: Major
>              Labels: csv
>
> Followup to https://issues.apache.org/jira/browse/ARROW-5747. The error 
> message(s) are not great when you give bad input. For example, if I give too 
> many or too few {{column_names}}, the error I get is {{Invalid: Empty CSV 
> file}}. In fact, that's about the only error message I've seen from the CSV 
> reader, no matter what I've thrown at it.
> It would be better if error messages were more specific so that I as a user 
> might know how to fix my bad input.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to