Skip to content

Commit 5fb8146

Browse files
timsaucerclaude
andcommitted
docs: fix broken llms.txt link and stale otherwise xref
- ai-coding-assistants.rst: use absolute https://datafusion.apache.org/python/llms.txt URL; the relative `llms.txt` resolved to /python/user-guide/llms.txt and 404'd because html_extra_path publishes the file at the site root. - expressions.rst: drop the broken `:py:meth:~datafusion.expr.Expr.otherwise` xref (otherwise lives on CaseBuilder, not Expr) and spell the recommended replacement as `f.when(f.in_list(...), value).otherwise(default)`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1b764b7 commit 5fb8146

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/source/user-guide/ai-coding-assistants.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ What is published
3030
DataFrame operations, expression building, SQL-to-DataFrame mappings,
3131
idiomatic patterns, and common pitfalls. Follows the
3232
`Agent Skills <https://agentskills.io>`_ open standard.
33-
- `llms.txt <llms.txt>`_ — an entry point for LLM-based tools following the
33+
- `llms.txt <https://datafusion.apache.org/python/llms.txt>`_ — an entry point for LLM-based tools following the
3434
`llmstxt.org <https://llmstxt.org>`_ convention. Categorized links to the
3535
skill, user guide, API reference, and examples.
3636

docs/source/user-guide/common-operations/expressions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ This searched-CASE pattern is idiomatic for "attribute the measure to the
234234
matching side of a left join, otherwise contribute zero" — a shape that
235235
appears in TPC-H Q08 and similar market-share calculations.
236236

237-
If a switched CASE has only two or three branches that test equality, an
238-
``in_list`` filter combined with :py:meth:`~datafusion.expr.Expr.otherwise`
239-
is often simpler than the full ``case`` builder.
237+
If a switched CASE only groups several equality matches into one bucket,
238+
``f.when(f.in_list(col(...), [...]), value).otherwise(default)`` is often
239+
simpler than the full ``case`` builder.
240240

241241
Structs
242242
-------

0 commit comments

Comments
 (0)