Kasper Sørensen created METAMODEL-62:
----------------------------------------

             Summary: 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)

Reply via email to