You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Kasper Sørensen (JIRA)" <ji...@apache.org> on 2014/06/19 23:55:25 UTC
[jira] [Commented] (METAMODEL-62) Single-line CSV parsing may throw
exception even though 'failOnInconsistentRowLength' is set to false
[ https://issues.apache.org/jira/browse/METAMODEL-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14037960#comment-14037960 ]
Kasper Sørensen commented on METAMODEL-62:
------------------------------------------
I made a proposed fix, here:
https://reviews.apache.org/r/22793/
> Single-line CSV parsing may throw exception even though 'failOnInconsistentRowLength' is set to false
> -----------------------------------------------------------------------------------------------------
>
> Key: METAMODEL-62
> URL: https://issues.apache.org/jira/browse/METAMODEL-62
> Project: Metamodel
> Issue Type: Bug
> Reporter: Kasper Sørensen
> Priority: Minor
>
> I just ran into a CSV file with a really malformed record in it. I got an exception like this:
> {code}
> org.apache.metamodel.MetaModelException: Failed to parse CSV line no. 2: "
> at org.apache.metamodel.csv.SingleLineCsvRow.getValuesInternal(SingleLineCsvRow.java:63)
> at org.apache.metamodel.csv.SingleLineCsvRow.getValue(SingleLineCsvRow.java:98)
> at org.apache.metamodel.data.AbstractRow.getValues(AbstractRow.java:95)
> {code}
> It looks like we should in that case return our "best guess" for a record, or even a record with null values.
--
This message was sent by Atlassian JIRA
(v6.2#6252)