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

Function GetColumn

cpp/src/arrow/compute/kernels/vector_sort_internal.h:554–559  ·  view source on GitHub ↗

// Returns an error status if no column matching `ref` is found, or if the FieldRef is // a nested reference.

Source from the content-addressed store, hash-verified

552// // Returns an error status if no column matching `ref` is found, or if the FieldRef is
553// // a nested reference.
554inline Result<std::shared_ptr<ChunkedArray>> GetColumn(const Table& table,
555 const FieldRef& ref) {
556 RETURN_NOT_OK(CheckNonNested(ref));
557 ARROW_ASSIGN_OR_RAISE(auto path, ref.FindOne(*table.schema()));
558 return table.column(path[0]);
559}
560
561inline Result<std::shared_ptr<Array>> GetColumn(const RecordBatch& batch,
562 const FieldRef& ref) {

Callers 2

ResolveSortKeysMethod · 0.70
ResolveSortKeysMethod · 0.70

Calls 3

CheckNonNestedFunction · 0.85
GetOneMethod · 0.80
columnMethod · 0.45

Tested by

no test coverage detected