for (Set<ColumnExpression> equivalentExpressions : set) {
Iterator<ColumnExpression> equivalentIters = equivalentExpressions.iterator();
boolean isInSet = areEquivalent(equivalentIters.next(), columnExpression, equivs);
// as a sanity check, ensure that this is consistent for the rest of them
while (equivalentIters.hasNext()) {
ColumnExpression next = equivalentIters.next();
boolean bothEquivalent = areEquivalent(next, columnExpression, equivs)
&& areEquivalent(columnExpression, next, equivs);
assertEquals(
"equivalence for " + columnExpression + " against " + next + " in " + equivalentExpressions,
isInSet,