if (projectionSpec instanceof Attribute) {
result.add(new AttributeExprEx((Attribute) projectionSpec, nodeMaker));
} else {
// projectionSpec is a ExpressionProjectionSpec
ExpressionProjectionSpec expressionProjectionSpec = (ExpressionProjectionSpec) projectionSpec;
Expression expression = expressionProjectionSpec.toExpression();
if (expression instanceof SQLExpression)
result.add(((SQLExpression)expression));
else
return Collections.emptyList();
}