MCPcopy Create free account
hub / github.com/apache/arrow / UseBoringRefs

Function UseBoringRefs

cpp/src/arrow/engine/substrait/serde_test.cc:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191});
192
193inline compute::Expression UseBoringRefs(const compute::Expression& expr) {
194 if (expr.literal()) return expr;
195
196 if (auto ref = expr.field_ref()) {
197 return compute::field_ref(*ref->FindOne(*kBoringSchema));
198 }
199
200 auto modified_call = *CallNotNull(expr);
201 for (auto& arg : modified_call.arguments) {
202 arg = UseBoringRefs(arg);
203 }
204 return compute::Expression{std::move(modified_call)};
205}
206
207int CountProjectNodeOptionsInDeclarations(const acero::Declaration& input) {
208 int counter = 0;

Callers 1

TESTFunction · 0.85

Calls 4

field_refFunction · 0.85
CallNotNullFunction · 0.85
literalMethod · 0.80
field_refMethod · 0.80

Tested by

no test coverage detected