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

Method evaluate

bolt/expression/Expr.cpp:2081–2089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2079 const std::string& currentSplitStr) {
2080 EvalCtx context(ensureExecCtx(), exprSet, &input, currentSplitStr);
2081 std::vector<VectorPtr> results = {std::move(result)};
2082 exprSet->eval(0, 1, true, rows, context, results);
2083 result = std::move(results[0]);
2084}
2085
2086core::ExecCtx* SimpleExpressionEvaluator::ensureExecCtx() {
2087 if (!execCtx_) {
2088 execCtx_ = std::make_unique<core::ExecCtx>(pool_, queryCtx_);
2089 }
2090 return execCtx_.get();
2091}
2092

Callers 4

toConstantFunction · 0.45

Calls 2

evaluateFunction · 0.85
evalMethod · 0.45

Tested by

no test coverage detected