so it might need to be
"join_field1", "join_field2", "data1", "data2"
but it's weird you didn't get an different error on that.
also, you don't need to sort before the join, it will happen during
the join for you (unless you left some stuff out).
maybe you can send me directly the exception and some relevant code
and I might be able to spot something.
ckw
--
Chris K Wensel
ch...@wensel.net
http://chris.wensel.net/
http://www.cascading.org/
Tap sourceLower = new Hfs( new TextLine( new Fields( "offset",
"line" ) ), inputFileLower );
Tap sourceUpper = new Hfs( new TextLine( new Fields( "offset",
"line" ) ), inputFileUpper );
Map sources = new HashMap();
sources.put( "lower", sourceLower );
sources.put( "upper", sourceUpper );
Function splitter = new RegexSplitter( new Fields( "num",
"char" ), " " );
// using null pos so all fields are written
Tap sink = new Hfs( new TextLine(), outputPath + "/complex/
cogroup/", true );
Pipe pipeLower = new Each( new Pipe( "lower" ), new
Fields( "line" ), splitter );
pipeLower = new GroupBy( pipeLower, new Fields( "num" ) );
pipeLower = new Every( pipeLower, new Fields( "char" ), new
First(), Fields.ALL );
Pipe pipeUpper = new Each( new Pipe( "upper" ), new
Fields( "line" ), splitter );
pipeUpper = new GroupBy( pipeUpper, new Fields( "num" ) );
pipeUpper = new Every( pipeUpper, new Fields( "char" ), new
First(), Fields.ALL );
Pipe splice = new CoGroup( pipeLower, new Fields( "num" ),
pipeUpper, new Fields( "num" ), Fields.size( 4 ) );
I'll review the field names in the JavaDoc to make sure they are
consistent. I'm sorry if they were confusing.
http://www.cascading.org/javadoc/
chris