private RelNode convertDelete(SqlDelete call) { RelOptTable targetTable = getTargetTable(call); RelNode sourceRel = convertSelect(call.getSourceSelect()); return new TableModificationRel( cluster, targetTable, catalogReader, sourceRel, TableModificationRel.Operation.DELETE, null, false); }
private RelNode convertUpdate(SqlUpdate call) { RelOptTable targetTable = getTargetTable(call); // convert update column list from SqlIdentifier to String List<String> targetColumnNameList = new ArrayList<String>(); for (SqlNode node : call.getTargetColumnList()) { SqlIdentifier id = (SqlIdentifier) node; String name = id.getSimple(); targetColumnNameList.add(name); } RelNode sourceRel = convertSelect(call.getSourceSelect()); return new TableModificationRel( cluster, targetTable, catalogReader, sourceRel, TableModificationRel.Operation.UPDATE, targetColumnNameList, false); }
RelOptUtil.createProject(joinRel, projects, null, true); return new TableModificationRel( cluster, targetTable,
false); return new TableModificationRel( cluster, targetTable,
public TableModificationRelBase toModificationRel( RelOptCluster cluster, RelOptTable table, Prepare.CatalogReader catalogReader, RelNode child, TableModificationRelBase.Operation operation, List<String> updateColumnList, boolean flattened) { return new TableModificationRel( cluster, table, catalogReader, child, operation, updateColumnList, flattened); } }
public TableModificationRelBase toModificationRel( RelOptCluster cluster, RelOptTable table, Prepare.CatalogReader catalogReader, RelNode child, TableModificationRelBase.Operation operation, List<String> updateColumnList, boolean flattened) { return new TableModificationRel( cluster, table, catalogReader, child, operation, updateColumnList, flattened); } }
private RelNode convertDelete(SqlDelete call) { RelOptTable targetTable = getTargetTable(call); RelNode sourceRel = convertSelect(call.getSourceSelect()); return new TableModificationRel( cluster, targetTable, catalogReader, sourceRel, TableModificationRel.Operation.DELETE, null, false); }
private RelNode convertDelete(SqlDelete call) { RelOptTable targetTable = getTargetTable(call); RelNode sourceRel = convertSelect(call.getSourceSelect()); return new TableModificationRel( cluster, targetTable, catalogReader, sourceRel, TableModificationRel.Operation.DELETE, null, false); }
private RelNode convertUpdate(SqlUpdate call) { RelOptTable targetTable = getTargetTable(call); // convert update column list from SqlIdentifier to String List<String> targetColumnNameList = new ArrayList<String>(); for (SqlNode node : call.getTargetColumnList()) { SqlIdentifier id = (SqlIdentifier) node; String name = id.getSimple(); targetColumnNameList.add(name); } RelNode sourceRel = convertSelect(call.getSourceSelect()); return new TableModificationRel( cluster, targetTable, catalogReader, sourceRel, TableModificationRel.Operation.UPDATE, targetColumnNameList, false); }
private RelNode convertUpdate(SqlUpdate call) { RelOptTable targetTable = getTargetTable(call); // convert update column list from SqlIdentifier to String List<String> targetColumnNameList = new ArrayList<String>(); for (SqlNode node : call.getTargetColumnList()) { SqlIdentifier id = (SqlIdentifier) node; String name = id.getSimple(); targetColumnNameList.add(name); } RelNode sourceRel = convertSelect(call.getSourceSelect()); return new TableModificationRel( cluster, targetTable, catalogReader, sourceRel, TableModificationRel.Operation.UPDATE, targetColumnNameList, false); }
@Override public TableModificationRel copy(RelTraitSet traitSet, List<RelNode> inputs) { assert traitSet.containsIfApplicable(Convention.NONE); return new TableModificationRel( getCluster(), table, catalogReader, sole(inputs), getOperation(), getUpdateColumnList(), isFlattened()); } }
@Override public TableModificationRel copy(RelTraitSet traitSet, List<RelNode> inputs) { assert traitSet.containsIfApplicable(Convention.NONE); return new TableModificationRel( getCluster(), table, catalogReader, sole(inputs), getOperation(), getUpdateColumnList(), isFlattened()); } }
public void rewriteRel(TableModificationRel rel) { TableModificationRel newRel = new TableModificationRel( rel.getCluster(), rel.getTable(), rel.getCatalogReader(), getNewForOldRel(rel.getChild()), rel.getOperation(), rel.getUpdateColumnList(), true); setNewForOldRel(rel, newRel); }
public void rewriteRel(TableModificationRel rel) { TableModificationRel newRel = new TableModificationRel( rel.getCluster(), rel.getTable(), rel.getCatalogReader(), getNewForOldRel(rel.getChild()), rel.getOperation(), rel.getUpdateColumnList(), true); setNewForOldRel(rel, newRel); }
CalcRel.createProject(joinRel, projects, null, true); return new TableModificationRel( cluster, targetTable,
CalcRel.createProject(joinRel, projects, null, true); return new TableModificationRel( cluster, targetTable,
false); return new TableModificationRel( cluster, targetTable,
false); return new TableModificationRel( cluster, targetTable,