private void checkRollUpInWindow(SqlWindow window, SqlValidatorScope scope) { if (window != null) { for (SqlNode node : window.getPartitionList()) { checkRollUp(null, window, node, scope, "PARTITION BY"); } for (SqlNode node : window.getOrderList()) { checkRollUp(null, window, node, scope, "ORDER BY"); } } }
(SqlNodeList) expand(window.getPartitionList(), windowScope); window.setPartitionList(expandedPartitionList); expandedPartitionList.validate(this, windowScope);
private void checkRollUpInWindow(SqlWindow window, SqlValidatorScope scope) { if (window != null) { for (SqlNode node : window.getPartitionList()) { checkRollUp(null, window, node, scope, "PARTITION BY"); } for (SqlNode node : window.getOrderList()) { checkRollUp(null, window, node, scope, "ORDER BY"); } } }
private void checkRollUpInWindow(SqlWindow window, SqlValidatorScope scope) { if (window != null) { for (SqlNode node : window.getPartitionList()) { checkRollUp(null, window, node, scope, "PARTITION BY"); } for (SqlNode node : window.getOrderList()) { checkRollUp(null, window, node, scope, "ORDER BY"); } } }
window.setRows(SqlLiteral.createBoolean(true, SqlParserPos.ZERO)); final SqlNodeList partitionList = window.getPartitionList(); final ImmutableList.Builder<RexNode> partitionKeys = ImmutableList.builder();
window.setRows(SqlLiteral.createBoolean(true, SqlParserPos.ZERO)); final SqlNodeList partitionList = window.getPartitionList(); final ImmutableList.Builder<RexNode> partitionKeys = ImmutableList.builder();
(SqlNodeList) expand(window.getPartitionList(), windowScope); window.setPartitionList(expandedPartitionList); expandedPartitionList.validate(this, windowScope);
(SqlNodeList) expand(window.getPartitionList(), windowScope); window.setPartitionList(expandedPartitionList); expandedPartitionList.validate(this, windowScope);
window.setRows(SqlLiteral.createBoolean(true, SqlParserPos.ZERO)); final SqlNodeList partitionList = window.getPartitionList(); final ImmutableList.Builder<RexNode> partitionKeys = ImmutableList.builder();
window.setRows(SqlLiteral.createBoolean(true, SqlParserPos.ZERO)); final SqlNodeList partitionList = window.getPartitionList(); final ImmutableList.Builder<RexNode> partitionKeys = ImmutableList.builder();
window.getPartitionList().accept(this); window.getOrderList().accept(this);
window.getPartitionList().accept(this); window.getOrderList().accept(this);
window.getPartitionList().accept(this); window.getOrderList().accept(this);
final SqlNodeList partitions = getPartitionList(); if (0 != partitions.size()) { throw validator.newValidationError(partitions.get(0),
final SqlNodeList partitions = getPartitionList(); if (0 != partitions.size()) { throw validator.newValidationError(partitions.get(0),