yihua opened a new pull request, #1051:
URL: https://github.com/apache/incubator-xtable/pull/1051

   ## *Important Read*
   
   Closes #1046, part of #722.
   
   ## What is the purpose of the pull request
   
   A Hudi table with a list of primitives no longer fails its first sync with a 
NullPointerException. Hudi's column stats reader names a list element 
`<list>.list.element` in either list layout, so the extractor now asks for that 
name, and skips a range whose column maps to no field.
   
   ## Brief change log
   
   - `HudiFileStatsExtractor` uses `list.element` for every list element.
   - `TestHudiFileStatsExtractor` checks the stats of the list element in both 
list layouts, besides the columns next to the list.
   
   Known limitations:
   
   - Element stats of a list of primitives were looked up under `<list>.array` 
in metadata table column stats before; an old metadata table that stored that 
name loses those stats.
   
   ## Verify this pull request
   
   This change added tests and can be verified as follows:
   
   - `TestHudiFileStatsExtractor` writes a struct holding an int, a list of 
ints and a map in Parquet's two-level and three-level list layouts, and checks 
the row count, the stats of the columns next to the list and the stats of the 
list element.
   - Run locally on JDK 11: 598 `xtable-core` unit tests pass (3 skipped), the 
`xtable-core` Iceberg ITs pass, and the Iceberg table format's 26 unit tests 
and 46 ITs pass (1 skipped).
   


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