Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
How to reproduce:
Input:
define distinct as DistinctBy('1')
input = load 'input' as vs:bag{(v0:chararray,v1:chararray)};
output = foreach input generate distinct(vs);
dump output;
expected: {(a-b,c), (a-b,d)}
actual:
{(a-b,c)}The bug is caused by the implementation based on splitting the tuple string by '-' to get tuple parts.