JingsongLi commented on PR #8577:
URL: https://github.com/apache/paimon/pull/8577#issuecomment-4953811357

   - `RowType.get_field_index()` returns `DataField.id`, but the `ProjectedRow` 
of nested key/sequence uses it as an array index.
   - The actual nested field ID is a global ID and does not guarantee 
continuity from 0.
   - Reproducing locally using field IDs `10, 20`: Both generate 
`mapping=[10]`, then directly throw an `IndexError: Position 10 is out of 
bounds for row arity 2`.
   - The existing tests use `0, 1, 2`, which obscures the issue. The ordinal 
field should be returned, and non-sequential ID tests should be added.


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