MCPcopy Create free account
hub / github.com/bytedance/bolt / hasConditionals

Function hasConditionals

bolt/expression/Expr.cpp:115–127  ·  view source on GitHub ↗

Returns true if input expression or any sub-expression is an IF, AND or OR.

Source from the content-addressed store, hash-verified

113 const TypePtr& type,
114 memory::MemoryPool* pool,
115 VectorPtr& result) {
116 if (!result) {
117 result = BaseVector::createNullConstant(type, 0, pool);
118 }
119}
120
121bool exprEvalFlatNoNullsEnabled(const EvalCtx& context) {
122 auto* queryCtx = context.execCtx()->queryCtx();
123 return !queryCtx || queryCtx->queryConfig().exprEvalFlatNoNulls();
124}
125} // namespace
126
127Expr::Expr(
128 TypePtr type,
129 std::vector<std::shared_ptr<Expr>>&& inputs,
130 std::shared_ptr<VectorFunction> vectorFunction,

Callers 1

computeMetadataMethod · 0.85

Calls 2

isConditionalMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected