@SuppressWarnings("unchecked") public List<ColumnDefinition> fieldList() { return (List<ColumnDefinition>) ((List<? extends SqlNode>) fieldList.getList()); }
SqlNodeList thatNode = (SqlNodeList) exprNode; if (thisNode.getList().size() != thatNode.getList().size()) { return false; for (int i = 0; i < thisNode.getList().size(); i++) { SqlNode thisChild = thisNode.getList().get(i); final SqlNode thatChild = thatNode.getList().get(i); if (!isSqlNodeEqual(thisChild, thatChild)) { return false;
public void validateWithItem(SqlWithItem withItem) { if (withItem.columnList != null) { final RelDataType rowType = getValidatedNodeType(withItem.query); final int fieldCount = rowType.getFieldCount(); if (withItem.columnList.size() != fieldCount) { throw newValidationError(withItem.columnList, RESOURCE.columnCountMismatch()); } SqlValidatorUtil.checkIdentifierListForDuplicates( withItem.columnList.getList(), validationErrorFunction); } else { // Luckily, field names have not been make unique yet. final List<String> fieldNames = getValidatedNodeType(withItem.query).getFieldNames(); final int i = Util.firstDuplicate(fieldNames); if (i >= 0) { throw newValidationError(withItem.query, RESOURCE.duplicateColumnAndNoColumnList(fieldNames.get(i))); } } }
private void validateDefinitions(SqlMatchRecognize mr, MatchRecognizeScope scope) { final Set<String> aliases = catalogReader.nameMatcher().createSet(); for (SqlNode item : mr.getPatternDefList().getList()) { final String alias = alias(item); if (!aliases.add(alias)) { for (SqlNode item : mr.getPatternDefList().getList()) { final String alias = alias(item); SqlNode expand = expand(item, scope);
protected void validateWindowClause(SqlSelect select) { final SqlNodeList windowList = select.getWindowList(); @SuppressWarnings("unchecked") final List<SqlWindow> windows = (List) windowList.getList(); if (windows.isEmpty()) { return;
SqlNode firstOrderByColumn = orderBy.getList().get(0); SqlIdentifier identifier; if (firstOrderByColumn instanceof SqlBasicCall) {
s.end(this), args.getList());} } else { jj_consume_token(-1);
s.end(this), args.getList());} } else { jj_consume_token(-1);
jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.ROLLUP.createCall(s.end(this), nodes.getList());} } else if (jj_2_166(2)) { jj_consume_token(CUBE); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.CUBE.createCall(s.end(this), nodes.getList());} } else if (jj_2_167(3)) { jj_consume_token(LPAREN);
e2, using, new SqlNodeList(list.getList(), Span.of(using).end(this)));} } else { {if (true) return new SqlJoin(joinType.getParserPosition(),
s.end(this), args.getList());} } else { jj_consume_token(-1);
s.end(this), args.getList());} } else { jj_consume_token(-1);
jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.ROLLUP.createCall(s.end(this), nodes.getList());} } else if (jj_2_166(2)) { jj_consume_token(CUBE); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.CUBE.createCall(s.end(this), nodes.getList());} } else if (jj_2_167(3)) { jj_consume_token(LPAREN);
e2, using, new SqlNodeList(list.getList(), Span.of(using).end(this)));} } else { {if (true) return new SqlJoin(joinType.getParserPosition(),
args.getList());} throw new Error("Missing return statement in function");
e2, joinConditionType, new SqlNodeList(list.getList(), Span.of(joinConditionType).end(this))); } else { e = new SqlJoin(joinType.getParserPosition(),
args.getList());} throw new Error("Missing return statement in function");
e2, joinConditionType, new SqlNodeList(list.getList(), Span.of(joinConditionType).end(this))); } else { e = new SqlJoin(joinType.getParserPosition(),