You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sean Wu (Jira)" <ji...@apache.org> on 2022/07/20 10:47:00 UTC

[jira] [Commented] (CSV-102) Commons CSV does not properly handle record separators

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

Sean Wu commented on CSV-102:
-----------------------------

Hi, I'm eager for this feature :)

Now my application will process the CSV format liked data by the embeded commons-csv, but it failed to handle the customized line breaks that specified in the MySQL LOAD DATA command(e.g. LOAD DATA INFILE xxx ... LINE TERMINATED BY "| \n").

So I was wondering whether this issue will be fixed in the near futrue?

Besides, I found a member named recordSeperator in CSVFormat but failed to seek any usage of in Lexer. It really confuse me because the recordSeperator should be used in the lexer process but actually it doesn't. :(

> Commons CSV does not properly handle record separators
> ------------------------------------------------------
>
>                 Key: CSV-102
>                 URL: https://issues.apache.org/jira/browse/CSV-102
>             Project: Commons CSV
>          Issue Type: Bug
>    Affects Versions: 1.x
>         Environment: ALL
>            Reporter: Oliver Oyston
>            Priority: Minor
>             Fix For: Discussion, 1.x
>
>         Attachments: Changes.patch, nonstandard.patch
>
>
> Any specified record separator appear to be ignored and the code just assumes that standard line endings are the record delimiters.
> I have a patch to partly address the problems that 'falls back' to the current behavior. The patch only allow a maximum of a one character record separator.
> The approach needs verifying and also needs improving to be more generic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)