jackylee-ch opened a new pull request, #9669:
URL: https://github.com/apache/paimon/pull/9669

   ### Purpose
   
   `FileIndexOptions` keys nested index entries by `Column`, nested name 
included, so `m[k1]` and `m[k2]` are two entries reporting the same top level 
column `m`. `FileIndexProcessor` collected that name once per entry into a 
list, so the projection carried `m` twice and `RowType.project` rejected it: 
`Field names must be unique. Found duplicates: [m]`.
   
   `DataFileIndexWriter` adds every nested key to one maintainer per map 
column, so the config is valid on write; only `rewrite_file_index` failed.
   
   ### Tests
   
   `FileIndexProcessorTest.testProcessIndexesTwoKeysOfOneMapColumn`, reading 
the rewritten index back to assert both keys survive.
   
   Written with Claude Code; reasoning and verification are mine.
   


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