mchades opened a new issue, #14810:
URL: https://github.com/apache/gravitino/issues/14810

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Both JSON sort-order examples in 
[table-partitioning-distribution-sort-order-indexes.md](https://github.com/apache/gravitino/blob/main/docs/table-partitioning-distribution-sort-order-indexes.md)
 use `"nullOrder": "NULLS_LAST"`.
   
   The API field is `nullOrdering`. The examples should use `"nullOrdering": 
"nulls_last"`, matching the existing OpenAPI schema.
   
   ### Error message and/or stacktrace
   
   No error. The unknown `nullOrder` field is ignored, so an ascending sort 
uses the default `nulls_first` instead of the requested `nulls_last`.
   
   ### How to reproduce
   
   1. Copy the documented sort-order JSON into a table-create request for Hive 
or Iceberg.
   2. Use `direction: asc` with `nullOrder: NULLS_LAST`.
   3. Observe that creation succeeds but the returned `nullOrdering` is 
`nulls_first`.
   4. Replace the field with `nullOrdering: nulls_last`; the requested ordering 
is retained.
   
   ### Additional context
   
   Correct both JSON examples. The field name causes the silent ignore; 
uppercase values are accepted by the parser, but lowercase examples should 
match the documented API values.
   


-- 
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]

Reply via email to