← All notes

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

Sources

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

Permanent ID: iil:note:kggk3w6c

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.},
}

Markdown

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.

All artifact files (JSON index)

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.