You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2011/03/29 21:08:05 UTC
[jira] [Resolved] (PIG-1893) Pig report input size -1 for empty
input file
[ https://issues.apache.org/jira/browse/PIG-1893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding resolved PIG-1893.
-------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Patch committed to trunk.
> Pig report input size -1 for empty input file
> ---------------------------------------------
>
> Key: PIG-1893
> URL: https://issues.apache.org/jira/browse/PIG-1893
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.9.0
> Reporter: Daniel Dai
> Assignee: Richard Ding
> Fix For: 0.9.0
>
> Attachments: PIG-1893.patch
>
>
> In the following script:
> {code}
> a = load '1.txt' as (a0, a1);
> b = load '2.txt' as (b0, b1);
> c = join a by a0, b by b0;
> dump c;
> {code}
> If 1.txt is empty, Pig will report
> Successfully read -1 records from: "1.txt"
> In WebUI, we can see we only have one MultiInputCounters: "Input records from _0_2.txt". In this case, we should count inputs "1.txt" 0 instead -1.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira