MCPcopy Create free account
hub / github.com/apache/impala / substitute

Method substitute

fe/src/main/java/org/apache/impala/analysis/Expr.java:1179–1186  ·  view source on GitHub ↗

Returns an analyzed clone of 'this' with exprs substituted according to smap. Removes implicit casts and analysis state while cloning/substituting exprs within this tree, such that the returned result has minimal implicit casts and types. Expects the analysis of the post-substitution expr to succeed

(ExprSubstitutionMap smap, Analyzer analyzer,
      boolean preserveRootType)

Source from the content-addressed store, hash-verified

1177 * the type of 'this'.
1178 */
1179 public Expr substitute(ExprSubstitutionMap smap, Analyzer analyzer,
1180 boolean preserveRootType) {
1181 try {
1182 return trySubstitute(smap, analyzer, preserveRootType);
1183 } catch (Exception e) {
1184 throw new IllegalStateException("Failed analysis after expr substitution.", e);
1185 }
1186 }
1187
1188 public static List<Expr> trySubstituteList(Iterable<? extends Expr> exprs,
1189 ExprSubstitutionMap smap, Analyzer analyzer, boolean preserveRootTypes)

Callers 15

initMethod · 0.95
computeTargetExprMethod · 0.95
mergeExprMethod · 0.95
pushdownConjunctsMethod · 0.45
createJoinConjunctMethod · 0.45
rewriteExprMethod · 0.45

Calls 1

trySubstituteMethod · 0.95

Tested by

no test coverage detected