MCPcopy Create free account
hub / github.com/apache/calcite / withRel

Method withRel

core/src/main/java/org/apache/calcite/rel/RelRoot.java:130–135  ·  view source on GitHub ↗

Creates a copy of this RelRoot, assigning a RelNode.

(RelNode rel)

Source from the content-addressed store, hash-verified

128
129 /** Creates a copy of this RelRoot, assigning a {@link RelNode}. */
130 public RelRoot withRel(RelNode rel) {
131 if (rel == this.rel) {
132 return this;
133 }
134 return new RelRoot(rel, validatedRowType, kind, fields, collation, hints);
135 }
136
137 /** Creates a copy, assigning a new kind. */
138 public RelRoot withKind(SqlKind kind) {

Callers 12

prepare_Method · 0.95
relMethod · 0.95
expandViewMethod · 0.95
prepareSqlMethod · 0.95
expandViewMethod · 0.95
convertSqlToRel2Method · 0.95
testPushCastNumericMethod · 0.45
testPushCastNumericMethod · 0.45
optimizeMethod · 0.45
trimUnusedFieldsMethod · 0.45

Calls

no outgoing calls

Tested by 5

convertSqlToRel2Method · 0.76
testPushCastNumericMethod · 0.36
testPushCastNumericMethod · 0.36