bk-mz opened a new pull request, #15079:
URL: https://github.com/apache/iceberg/pull/15079

   ### Description
   
   This PR adds a test that reproduces a regression in Iceberg 1.10.0 where 
`rewrite_position_delete_files` fails with `ValidationException` when the table 
contains array columns with primitive fields.
   
   **Error:**
   ```
   org.apache.iceberg.exceptions.ValidationException: Invalid partition field 
parent: list<struct<...>>
   ```
   
   **Root cause:** `ExpressionUtil.identitySpec()` creates a temporary 
partition spec from schema field IDs for filter projection. The 
`nonConstantFieldIds()` method in `PositionDeletesRowReader` collects ALL 
primitive field IDs including those nested inside arrays. When `identitySpec()` 
tries to create identity partition fields for these nested IDs, the new 
validation added in commit 9fb80b716 rejects them because their parent type is 
a list, not a struct.
   
   **Regression introduced by:** 9fb80b716 ("Core: Disallow creation of invalid 
PartitionSpec #12887")
   
   This test is expected to fail until the bug is fixed.


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

Reply via email to