// links. So we'll pull off the earlier part of the chain
// and make them a separate alias.
ReadFieldExpression outerLinks = (ReadFieldExpression)outerJoinFrom.links;
From baseFrom = From.forNavigationalLinks(outerLinks.base);
toReturn.froms.add(baseFrom);
outerJoinFrom.links = new ReadFieldExpression(new FromAliasExpression(baseFrom), outerLinks.field);
}
toReturn.froms.add(outerJoinFrom);
rewriteFromAliases(toMerge, from, outerJoinFrom);
toReturn.cols = new ColumnExpressions<>(createPairReader(sfw.cols.reader, toMerge.cols.reader));
toReturn.cols.columns.addAll(sfw.cols.columns);