Skip to content

Docs: Fix non-existent SortOrderBuilder method in evolution.md example#17085

Open
thswlsqls wants to merge 1 commit into
apache:mainfrom
thswlsqls:fix/evolution-sortorder-dec-nullorder-typo
Open

Docs: Fix non-existent SortOrderBuilder method in evolution.md example#17085
thswlsqls wants to merge 1 commit into
apache:mainfrom
thswlsqls:fix/evolution-sortorder-dec-nullorder-typo

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Closes #17082

Summary

  • The replaceSortOrder example called .dec("category", NullOrder.NULL_FIRST); neither dec(...) nor NullOrder.NULL_FIRST exist, so the example fails to compile.
  • Changed to .desc("category", NullOrder.NULLS_FIRST), matching the actual SortOrderBuilder/NullOrder API.
  • The line above already used the correct constant naming (NullOrder.NULLS_LAST), confirming this was a typo rather than a different intended API.

Testing done

  • Docs-only change, no behavior change — no test added. Verified against api/src/main/java/org/apache/iceberg/SortOrderBuilder.java (desc methods) and api/src/main/java/org/apache/iceberg/NullOrder.java (NULLS_FIRST/NULLS_LAST constants).

The replaceSortOrder example called .dec(...) and used
NullOrder.NULL_FIRST, neither of which exists in the API
(SortOrderBuilder only has desc(...), and NullOrder's constant is
NULLS_FIRST). The example does not compile as written.

Generated-by: Claude Code
@github-actions github-actions Bot added the docs label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Fix non-existent SortOrderBuilder method in evolution.md example

2 participants