Run Apache Arrow compute functions over arrays and tables
Answer: Arrow can run logical compute operations on inputs whose types vary. Python callers use the pyarrow.compute module for the standard operations. Selecting a viable kernel for executing a function is referred to as dispatching.
Calling compute functions
Logical compute operations in Arrow can run over inputs of varying types. The pyarrow.compute module provides the standard operations, and you can call them directly. Many compute functions accept an array (chunked or not) or a scalar, though some mandate one or the other. sort_indices is an example that requires its only input to be an array.
Grouped aggregations are not invoked that way; they raise an exception and must go through pyarrow.Table.group_by(). The Compute Functions reference lists the functions PyArrow provides.
| compute functions | inputs | |---|---| | pyarrow.compute | array and scalar inputs | | group_by | grouped aggregations | | Function | name, summary, arity |
Kernels and arity
Arity records how many arguments a function requires. There is a function taking no arguments, a function taking 1 argument, a function taking 2 arguments, and a function taking a variable number of arguments.
Dispatching is the name given to selecting a viable kernel when executing a function. A Function carries a name, a summary, a detailed description, and symbolic names for its arguments.
See also
Claims
- id: C1 claim: Arrow supports logical compute operations over inputs of possibly varying types. source: S1 evidence: "Arrow supports logical compute operations over inputs of possibly varying types."
- id: C2 claim: Many compute functions accept both array and scalar inputs, with some mandating one kind. source: S1 evidence: "Many compute functions support both array (chunked or not)"
- id: C3 claim: Selecting a viable kernel for a function is called dispatching. source: S2 evidence: "Selecting a viable kernel for executing a function"
Sources
- [S1] Compute Functions. Apache Arrow Python docs. https://arrow.apache.org/docs/python/compute.html . License: Apache-2.0. Accessed 2026-11-20.
- [S2] function.h (Function, Arity). Apache Arrow source. https://raw.githubusercontent.com/apache/arrow/main/cpp/src/arrow/compute/function.h . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Apache Arrow Python docs, Compute Functions; Apache Arrow source, function.h (Function, Arity). Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Apache Arrow Python docs, Compute Functions; Apache Arrow source, function.h (Function, Arity). Apache-2.0.
Cite this
iinventedlight. 2026. "Run Apache Arrow compute functions over arrays and tables." iinventedlight Library, iil:note:kggk3w6c, version of 2026-11-20. https://iinventedlight.com/library/notes/arrow-compute-kernels/. License: CC-BY-4.0.
@misc{iil_note_kggk3w6c,
author = {{iinventedlight}},
title = {{Run Apache Arrow compute functions over arrays and tables}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/arrow-compute-kernels/},
note = {Permanent ID iil:note:kggk3w6c. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- arrow-compute-kernels.table.json (table; CC-BY-4.0)
- arrow-compute-kernels.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/arrow-compute-kernels.md.