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

Method GetValueArg

cpp/src/arrow/engine/substrait/extension_set.cc:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158Result<compute::Expression> SubstraitCall::GetValueArg(int index) const {
159 if (index >= size_) {
160 return Status::Invalid("Expected Substrait call to have a value argument at index ",
161 index, " but it did not have enough arguments");
162 }
163 auto value_arg_it = value_args_.find(index);
164 if (value_arg_it == value_args_.end()) {
165 return Status::Invalid("Expected Substrait call to have a value argument at index ",
166 index, " but the argument was not a value");
167 }
168 return value_arg_it->second;
169}
170
171bool SubstraitCall::HasValueArg(int index) const {
172 return value_args_.find(index) != value_args_.end();

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected