[
https://issues.apache.org/jira/browse/PIG-4956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ankit resolved PIG-4956.
------------------------
Resolution: Invalid
> COUNT function is not working in pig 0.12.1 when the first column in the
> input file is blank
> --------------------------------------------------------------------------------------------
>
> Key: PIG-4956
> URL: https://issues.apache.org/jira/browse/PIG-4956
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.12.1
> Reporter: ankit
>
> COUNT function is not working in pig 0.12.1 when the first column in the
> input file is blank
> {code}
> A = load 'test/testpig' using PigStorage('|') as (test1:chararray,
> test2:chararray, test3:chararray);
> B = GROUP A BY test2;
> X = FOREACH B GENERATE COUNT(A);
> dump X;
> O/P
> (0)
> (0)
> (0)
> cat testpig
> |2|3
> |2|1
> |3|4
> |3|3
> |2|5
> |4|3
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)