SetFunctionTypeContext setFunctionType = ctx.setFunctionType();
NamedColumn innerNc = inner.conjure();
if (inner.codeRefersToConjuredColumn()) {
raBuilder.conjureColumnFrom(inner);
}
Aggregated aggr;
boolean isDistinct = ctx.setQuantifier() != null && ctx.setQuantifier().DISTINCT() != null;
if (setFunctionType.COUNT() == null && isDistinct) {
throw new RuntimeException("DISTINCT for set function implemented only for COUNT");