pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy V. Ryaboy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2556) CSVExcelStorage load: quoted field with newline as first character sees newline as record end
Date Fri, 17 Aug 2012 20:54:38 GMT

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

Dmitriy V. Ryaboy commented on PIG-2556:
----------------------------------------

Looks good, but the spacing is kind of crazy -- did tabs get in or something?

+                if (i == recordLen - 1) {
+                    fieldBuffer.put(b);
+					sawEmbeddedRecordDelimiter = true;
+                }
                
> CSVExcelStorage load: quoted field with newline as first character sees newline as record
end 
> ----------------------------------------------------------------------------------------------
>
>                 Key: PIG-2556
>                 URL: https://issues.apache.org/jira/browse/PIG-2556
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>    Affects Versions: 0.9.1
>            Reporter: Peter Welch
>              Labels: newbie, patch
>         Attachments: CSVExcelProblems-2.patch, patch_PIG2556_CSVExcelStorage.patch
>
>
> Loading a record that contains a newline as the first character in a quoted field is
broken.  The loader interprets the quoted newline as the record delimiter.  I've identified
and fixed the bug and added a new testcase to expose it.  I'll post a patch soon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message