thswlsqls opened a new issue, #17082:
URL: https://github.com/apache/iceberg/issues/17082
**Apache Iceberg version**
main @ 49b89a8c5
**Query engine**
None (Java API)
**Please describe the bug**
The `replaceSortOrder` example in `docs/docs/evolution.md` (line 96) calls
`.dec("category", NullOrder.NULL_FIRST)`. Neither exists in the API:
`SortOrderBuilder`
(`api/src/main/java/org/apache/iceberg/SortOrderBuilder.java`) only defines
`desc(...)`, not `dec(...)`, and `NullOrder`
(`api/src/main/java/org/apache/iceberg/NullOrder.java` line 22-23) only defines
the constants `NULLS_FIRST`/`NULLS_LAST`, not `NULL_FIRST`. The example does
not compile as written. The line directly above it (`.asc("id",
NullOrder.NULLS_LAST)`) already uses the correct constant naming, so only the
second line has the typo.
**Steps to reproduce**
Copy the example code block from `docs/docs/evolution.md` line 93-97 into a
Java file and compile it: fails with "cannot find symbol" for both `dec` and
`NULL_FIRST`.
**Additional context**
N/A.
--
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]