[
https://issues.apache.org/jira/browse/PIG-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262251#comment-13262251
]
Prashant Kommireddi commented on PIG-2470:
------------------------------------------
The bug seems to be with putNext()
{code}
// Do the escaping:
for (Object field : tupleToWrite.getAll()) {
fieldCounter++;
if (field == null) {
logger.warn("Field " + fieldCounter + " within tuple '"
+ tupleToWrite + "' is null.");
return;
}
{code}
I think the intent here must have been to "continue" instead of "return" on
coming across a null field.
> Issue with CSVEXcelStorage piggy bank function
> ----------------------------------------------
>
> Key: PIG-2470
> URL: https://issues.apache.org/jira/browse/PIG-2470
> Project: Pig
> Issue Type: Bug
> Components: piggybank
> Affects Versions: 0.9.0
> Reporter: Priya Karkele
>
> CSVExcelStorage piggy bank function skips the record, which has 1 or more
> null column(s) in it. The record is not written to the file
--
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