thswlsqls opened a new pull request, #17085:
URL: https://github.com/apache/iceberg/pull/17085
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).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]