I have a pig script that spawned an attitude
A: {x: chararray,B: {(y: chararray,z: int)}}
I want to sort A based on By, however the following snippet gives me an error:
Syntax error, unexpected character at or near z
output = foreach A{
sorted = order B by z DSC;
generate x,sorted;
}
source
share