GGraziadei opened a new pull request, #18077: URL: https://github.com/apache/iceberg/pull/18077
Backport of #17669 to Spark 3.5, 4.0 and 4.2, as noted in that PR. The main-source changes are identical to the 4.1 version: - `SparkZOrderUDF.booleanToOrderedBytesUDF()` returns `PRIMITIVE_EMPTY` for a null `Boolean` instead of throwing an NPE, matching the null-sorts-lowest convention already used by the other converters. - `SparkZOrderFileRewriteRunner.validZOrderColNames` stores the resolved field name rather than the caller's spelling, so a case-insensitive match no longer fails later in `zValue`. The three regression tests from #17669 (`zOrderUDFEncodesNullValuesAsZeroBytes`, `zOrderSortWithNullBooleanValues`, `zOrderSortWithMismatchedColumnCase`) are added to `TestRewriteDataFilesAction` for each version. -- 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]
