+ "c = cogroup a by *, b by *;"
+ "d = foreach c generate group, flatten($1), flatten($2);"
+ "e = foreach d generate group + 1, field1 + 1, field4 + 2.0;";
LogicalPlan plan = generateLogicalPlan(query);
new ColumnAliasConversionVisitor( plan ).visit();
// validate
CompilationMessageCollector collector = new CompilationMessageCollector();
try {
TypeCheckingRelVisitor typeChecker = new TypeCheckingRelVisitor(plan, collector);
typeChecker.visit();