You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "ankit (JIRA)" <ji...@apache.org> on 2016/07/22 06:44:20 UTC
[jira] [Created] (PIG-4956) COUNT function is not working in pig
0.12.2 when the first column in the input file is blank
ankit created PIG-4956:
--------------------------
Summary: COUNT function is not working in pig 0.12.2 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.2 when the first column in the input file is blank
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;
cat testpig
|2|3
|2|1
|3|4
|3|3
|2|5
|4|3
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)