SymbolTable symbolsForSources = new HashSymbolTable(originalSymtab);
List<WindowDef> windowDefs = s.getWindowDefs();
for (WindowDef def : windowDefs) {
def.accept(this);
symbolsForSources.addSymbol(new WindowSymbol(def.getName(), def.getWindowSpec()));
}
mSymTableContext.push(symbolsForSources);
// Now visit the sources, with the symbols for any windows pushed.
SQLStatement source = s.getSource();