docs: Refactor Presto C++ documentation #28680
<!-- Generated by sourcery-ai[bot]: start review_guide -->
<details>
<summary>Reviewer's guide (collapsed on small PRs)</summary>
Reviewer's Guide
Refactors the Presto C++ documentation by moving descriptive function behavior into a new Functions page, linking it from the documentation navigation, and simplifying the Limitations page so it no longer presents function documentation or redundant structure.
File-Level Changes
| Change | Details | Files |
| ------ | ------- | ----- |
| Separates Presto C++ function documentation from the limitations page and exposes it as its own documentation page. | <ul><li>Moves the Functions content into a new standalone page.</li><li>Adds the new page to the Presto C++ documentation navigation.</li><li>Removes the redundant Functions section from the limitations page.</li></ul> | presto-docs/src/main/sphinx/presto_cpp/functions.rst<br/>presto-docs/src/main/sphinx/presto_cpp/limitations.rst<br/>presto-docs/src/main/sphinx/presto-cpp.rst |
| Simplifies the limitations page presentation to reflect its focused scope. | <ul><li>Removes the single-entry table of contents.</li><li>Removes the redundant General Limitations heading.</li></ul> | presto-docs/src/main/sphinx/presto_cpp/limitations.rst |
</details>
---
<details>
<summary>Tips and commands</summary>
Interacting with Sourcery
@sourcery-ai review on the pull request.issue from a review comment by replying to it. You can also reply to a
review comment with
@sourcery-ai issue to create an issue from it.@sourcery-ai anywhere in the pullrequest title to generate a title at any time. You can also comment
@sourcery-ai title on the pull request to (re-)generate the title at any time.@sourcery-ai summary anywhere inthe pull request body to generate a PR summary at any time exactly where you
want it. You can also comment
@sourcery-ai summary on the pull request to(re-)generate the summary at any time.
@sourcery-ai guide on the pullrequest to (re-)generate the reviewer's guide at any time.
@sourcery-ai resolve on thepull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore.
@sourcery-ai dismiss on the pullrequest to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment
@sourcery-ai review to trigger a new review!Customizing Your Experience
Access your dashboard to:
summary, the reviewer's guide, and others.
Getting Help
</details>
<!-- Generated by sourcery-ai[bot]: end review_guide -->
Add a blurb here stating the purpose of this document : to outline the cases in which Presto C++ function behavior diverges from Presto Java and the reasoning for the same.
Lets also scan the rest of the writing to keep the phrasing uniform illustrating the difference in behavior.
Thanks @steveburnett for reorganizing this page. The separation looks more clean now.
Add a blurb here stating the purpose of this document : to outline the cases in which Presto C++ function behavior diverges from Presto Java and the reasoning for the same.
Done! Added this sentence at the top of the page:
This document describes how, and why, Presto C++ functions differ from Presto functions.
Lets also scan the rest of the writing to keep the phrasing uniform illustrating the difference in behavior.
I had intended to only refactor the documentation in this PR to merge this quickly, then open a new PR to revise the functions content - like the other PR we talked about to rewrite the Limitations heading. But if you like, we can revise the Functions doc in this one. I took a quick look and did not notice anything notable. I can look again, and if you have suggestions please let me know!
Thanks @steveburnett
Thanks @steveburnett
You're welcome @aditi-pandit! I will follow up with you about rewriting the functions doc, as you recommend, for more uniform phrasing. (Also, I think the TIMESTAMP section might need updating and it's not the only part that could be out of date.)
We talked about the changes you want to make to the Limitations page (and I agree with all of them) so I will leave the Limitations page alone and let you open the docs PR to revise the Limitations list. However, if you want to send me a draft of the Limitations instead, I am happy to open the PR for you.
aditi-pandit
steveburnett
Description
After discussion with @aditi-pandit, I have done the following:
moved the text in https://github.com/prestodb/presto/blob/master/presto-docs/src/main/sphinx/presto_cpp/limitations.rst#functions to a new page https://prestodb.io/docs/current/presto_cpp/functions.html
removed the table of contents from https://github.com/prestodb/presto/blob/master/presto-docs/src/main/sphinx/presto_cpp/limitations.rst because it only had a single heading so a ToC was unneeded
Motivation and Context
Readers who read the Limitations page were reported as being distracted by the length of the page which implies that Presto C++ is less capable than it currently is.
In discussion with @aditi-pandit, we realized that the Functions content was more like "this is how the function works in Presto C++", and that grouping this descriptive documentation as a limitation was inappropriate. Moving the functions documentation to a separate page helps deliver relevant doc to readers based on the page names in the table of contents.
Impact
Documentation.
Test Plan
Local doc builds.
Screenshots:
Limitations page
<img width="850" height="835" alt="Screenshot 2026-10-19 at 12 29 04 PM" src="https://github.com/user-attachments/assets/c6b8bea1-c844-4529-b8a2-7e7190111b4e" />
Functions page
<img width="851" height="830" alt="Screenshot 2026-10-19 at 12 29 12 PM" src="https://github.com/user-attachments/assets/bea25f91-70a5-41e3-9b6f-dc44f11b7206" />
Contributor checklist
Release Notes
Summary by Sourcery
Separate Presto C++ function documentation from limitations to make the documentation structure clearer for readers.
New Features:
Enhancements:
Documentation: