ImmutableMap.Builder<Symbol, SortItem.Ordering> orderings = ImmutableMap.builder();
for (Map.Entry<Symbol, SortItem.Ordering> entry : node.getOrderings().entrySet()) {
orderings.put(canonicalize(entry.getKey()), entry.getValue());
}
return new WindowNode(node.getId(), source, canonicalize(node.getPartitionBy()), canonicalize(node.getOrderBy()), orderings.build(), functionCalls.build(), functionInfos.build());
}