Skip to content

GH-55762: [C++][Python][Docs] Add missing compute functions to docs - #55786

Open
rajbhatt2406-collab wants to merge 4 commits into
apache:mainfrom
rajbhatt2406-collab:docs-55762-compute-functions
Open

rajbhatt2406-collab wants to merge 4 commits into
apache:mainfrom
rajbhatt2406-collab:docs-55762-compute-functions

Conversation

@rajbhatt2406-collab

@rajbhatt2406-collab rajbhatt2406-collab commented Nov 25, 2026 •

Copy link
Copy Markdown

Rationale for this change

Some compute functions were missing from the Apache Arrow C++ and Python documentation. This PR adds the missing documentation entries.

What changes are included in this PR?

  • Added dictionary_decode to C++ compute documentation.
  • Added run_end_encode and run_end_decode to C++ compute documentation.
  • Added utf8_normalize to C++ compute documentation.
  • Added search_sorted to Python compute API documentation.

index_in_meta_binary and is_in_meta_binary are excluded because their rename work is still pending.

Are these changes tested?

  • Ran git diff --check successfully.
  • Documentation build/tests were not run.

Are there any user-facing changes?

No functional or API changes. Only documentation has been updated.

Was AI used for this PR?

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

GitHub Issue: #55762

@tadeja

tadeja commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

@rajbhatt2406-collab you'd need to update your PR description using PR template.
Also edit title to start with GH-55762: instead of MINOR: - see: Contributing Overview - pull request.

@tadeja tadeja changed the title MINOR: Add missing compute functions to docs GH-55762: [C++][Python][Docs] Add missing compute functions to docs Nov 26, 2026
@rajbhatt2406-collab

Copy link
Copy Markdown
Author

Hi, I've updated the PR description according to the contribution guidelines and PR template. Thank you for the feedback!

@tadeja
tadeja marked this pull request as ready for review November 27, 2026 13:00
Copilot AI balanced review requested due to automatic review settings November 27, 2026 13:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@tadeja
tadeja requested a balanced review from Copilot November 27, 2026 16:43

This comment was marked as duplicate.

Comment thread docs/source/cpp/compute.rst Outdated
Comment on lines +1436 to +1438
| run_end_decode | Unary | Run-end encoded | Input type | | |
+-----------------+------------+--------------------+------------------+--------------------------------+-------+
| run_end_encode | Unary | Boolean, Null, | Run-end encoded | :struct:`RunEndEncodeOptions` | |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two may better fit under the Associative transforms table. Perhaps replace Input type with Encoded value type? Also, Nested types list includes Unions which doesn't seem to fit run_end_encode.

@tadeja tadeja Dec 1, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong entry Input type hasn't been addressed yet.
@rajbhatt2406-collab

Comment thread docs/source/python/api/compute.rst Resolved
Comment thread docs/source/cpp/compute.rst Resolved
@rajbhatt2406-collab

Copy link
Copy Markdown
Author

Hi, I've addressed all the requested changes and pushed the updates. Please take a look. Thank you!

@tadeja
tadeja requested a balanced review from Copilot November 30, 2026 19:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The dictionary_decode documentation incorrectly lists the output as the input type rather than the dictionary’s value type.

1 open issue

Review effort: Balanced

Comment thread docs/source/cpp/compute.rst Outdated
| dictionary_encode | Unary | Boolean, Null, Numeric, | Dictionary | :struct:`DictionaryEncodeOptions` | \(1) |
| | | Temporal, Binary- and String-like | | | |
+-------------------+-------+-----------------------------------+-------------+------------------------------------+-------+
| dictionary_decode | Unary | Dictionary | Input type | | \(4) |
@rajbhatt2406-collab

Copy link
Copy Markdown
Author

Hi, I've made all the requested changes and pushed the updates to the PR. Please take a look. Thank you!

Comment thread docs/source/cpp/compute.rst Outdated
+-------------------------+--------+-----------------------------------------+------------------------+-----------------------------------+-------+
| utf8_lower | Unary | String-like | String-like | | \(9) |
+-------------------------+--------+-----------------------------------------+------------------------+-----------------------------------+-------+
| utf8_normalize | Unary | String-like | String-like | :struct:`Utf8NormalizeOptions` | |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| utf8_normalize | Unary | String-like | String-like | :struct:`Utf8NormalizeOptions` | |
| utf8_normalize | Unary | String-like | String-like | :struct:`Utf8NormalizeOptions` | \(12) |

This one could use some footnote below like:

* \(12) Normalize each UTF8-encoded string to the Unicode normalization form
  as specified in the required :struct:`Utf8NormalizeOptions`.

Comment thread docs/source/cpp/compute.rst Outdated
Each output element corresponds to a unique value in the input, along
with the number of times this value has appeared.

* \(4) If the input is not a Dictionary array, it is returned unchanged.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* \(4) If the input is not a Dictionary array, it is returned unchanged.
* \(4) Dictionary-encoded arrays and chunked arrays are decoded to their
value type. Non-dictionary inputs are returned unchanged.

Comment thread docs/source/cpp/compute.rst Outdated
| dictionary_encode | Unary | Boolean, Null, Numeric, | Dictionary | :struct:`DictionaryEncodeOptions` | \(1) |
| | | Temporal, Binary- and String-like | | | |
+-------------------+-------+--------------------------------------+--------------------+-----------------------------------+-------+
| dictionary_decode | Unary | Dictionary | Value type | | \(4) |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update Value type here to Dictionary value type

@rajbhatt2406-collab

Copy link
Copy Markdown
Author

Addressed all requested changes and pushed the updates. Thank you for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants