Skip to content

MINOR: [Docs][C++] Fix Sphinx building html warning - #51672

Merged
raulcd merged 1 commit into
apache:mainfrom
tadeja:doxyfile-fix
Oct 1, 2026
Merged

raulcd merged 1 commit into
apache:mainfrom
tadeja:doxyfile-fix

Conversation

@tadeja

@tadeja tadeja commented Oct 1, 2026

Copy link
Copy Markdown
Member

Rationale for this change

Fix Sphinx building [html] warning

/build/python/docs/source/cpp/api/filesystem.rst:81: WARNING: doxygenfunction: Unable to resolve function "arrow::fs::InitializeS3" with arguments "(const S3GlobalOptions&)".
Candidate function could not be parsed. Parsing error is
...
ARROW_S3_EXPORT Status InitializeS3 (const S3GlobalOptions &options)

What changes are included in this PR?

Add new macro ARROW_S3_EXPORT to the PREDEFINED list in Doxyfile

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Was AI used for this PR?

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@tadeja
tadeja marked this pull request as ready for review October 1, 2026 09:51
Copilot AI balanced review requested due to automatic review settings October 1, 2026 09:51

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 review overview

🟢 Approval recommended

The focused configuration change directly addresses the documented parsing warning without affecting runtime behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Adds Doxygen preprocessing for the S3 export macro, allowing Sphinx to resolve S3 API declarations correctly.

Changes:

  • Defines ARROW_S3_EXPORT as empty during Doxygen processing.
File Description
cpp/​apidoc/​Doxyfile Adds the S3 export macro to PREDEFINED.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tadeja

tadeja commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

@raulcd perhaps any comments here? Otherwise I'd merge this as a mini "follow-up" to #50195

@raulcd raulcd left a comment

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.

Sounds reasonable to me, I've validated that specific Warning doesn't seem to appear anymore:

 reading sources... [ 76%] python/generated/pyarrow.dataset.WrittenFile .. python/generated/pyarrow.flight.GeneratorStream
reading sources... [ 81%] python/generated/pyarrow.flight.Location .. python/generated/pyarrow.ipc.RecordBatchFileWriter
reading sources... [ 86%] python/generated/pyarrow.ipc.RecordBatchStreamReader .. python/generated/pyarrow.parquet.Statistics
reading sources... [ 90%] python/generated/pyarrow.parquet.encryption.CryptoFactory .. python/generated/pyarrow.types.is_date64
reading sources... [ 95%] python/generated/pyarrow.types.is_decimal .. python/generated/pyarrow.unify_schemas
reading sources... [100%] python/generated/pyarrow.union .. status

/build/python/docs/source/format/Other.rst:21: ERROR: Error in "deprecated" directive:
1 argument(s) required, 0 supplied.

.. deprecated::

Thanks @tadeja

@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Oct 1, 2026
@raulcd
raulcd merged commit e6adb62 into apache:main Oct 1, 2026
65 of 69 checks passed
@raulcd raulcd removed the awaiting merge Awaiting merge label Oct 1, 2026
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