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

Method isConstant

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

Returns true if this expression should be treated as constant. I.e. if the frontend and backend should assume that two evaluations of the expression within a query will return the same value. Examples of constant expressions include: - Literal values like 1, "foo", or NULL - Deterministic operators

()

Source from the content-addressed store, hash-verified

1545 * FunctionCallExpr.isConstant()).
1546 */
1547 public final boolean isConstant() {
1548 if (isAnalyzed_) return isConstant_;
1549 return isConstantImpl();
1550 }
1551
1552 /**
1553 * Implements isConstant() - computes the value without using 'isConstant_'.

Callers 15

applyMethod · 0.95
applyMethod · 0.95
createHBaseValueRangeMethod · 0.95
addConjunctsToNodeMethod · 0.95
optimizeConjunctsMethod · 0.95
findSrcExprMethod · 0.95
evalToIntegerMethod · 0.95

Calls 1

isConstantImplMethod · 0.95

Tested by

no test coverage detected