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
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