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

Method WrapResults

cpp/src/arrow/compute/exec.cc:814–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812 }
813
814 Datum WrapResults(const std::vector<Datum>& inputs,
815 const std::vector<Datum>& outputs) override {
816 // If execution yielded multiple chunks (because large arrays were split
817 // based on the ExecContext parameters, then the result is a ChunkedArray
818 if (HaveChunkedArray(inputs) || outputs.size() > 1) {
819 return ToChunkedArray(outputs, output_type_);
820 } else {
821 // Outputs have just one element
822 return outputs[0];
823 }
824 }
825
826 protected:
827 Status EmitResult(std::shared_ptr<ArrayData> out, ExecListener* listener) {

Callers 2

ExecuteScalarExpressionFunction · 0.45
ExecuteMethod · 0.45

Calls 3

HaveChunkedArrayFunction · 0.85
ToChunkedArrayFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected