SqlIdentifier declName = window.getDeclName(); if (!declName.isSimple()) { throw newValidationError(declName, RESOURCE.windowNameMustBeSimple());
public SqlWindow lookupWindow(String name) { final SqlNodeList windowList = select.getWindowList(); for (int i = 0; i < windowList.size(); i++) { SqlWindow window = (SqlWindow) windowList.get(i); final SqlIdentifier declId = window.getDeclName(); assert declId.isSimple(); if (declId.names.get(0).equals(name)) { return window; } } // if not in the select scope, then check window scope if (windowParent != null) { return windowParent.lookupWindow(name); } else { return null; } }
public SqlWindow lookupWindow(String name) { final SqlNodeList windowList = select.getWindowList(); for (int i = 0; i < windowList.size(); i++) { SqlWindow window = (SqlWindow) windowList.get(i); final SqlIdentifier declId = window.getDeclName(); assert declId.isSimple(); if (declId.names.get(0).equals(name)) { return window; } } // if not in the select scope, then check window scope if (windowParent != null) { return windowParent.lookupWindow(name); } else { return null; } }
if(((SqlWindow) sqlNode).getDeclName().equalsDeep(window, false)) { window = sqlNode; break;
if (((SqlWindow) sqlNode).getDeclName().equalsDeep(window, Litmus.IGNORE)) { window = sqlNode; break;
SqlIdentifier declName = window.getDeclName(); if (!declName.isSimple()) { throw newValidationError(declName, RESOURCE.windowNameMustBeSimple());
SqlIdentifier declName = window.getDeclName(); if (!declName.isSimple()) { throw newValidationError(declName, RESOURCE.windowNameMustBeSimple());