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/22 20:14:24 UTC
[jira] [Resolved] (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:all-tabpanel ]
Kasper Sørensen resolved METAMODEL-62.
--------------------------------------
Resolution: Fixed
Assignee: Kasper Sørensen
Fixed applied as per lazy concensus.
> 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
> Assignee: 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)