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

   > `nested_update` assumes that the elements of `ARRAY<ROW>` are 
`InternalRow`; however, the PyArrow→Polars reader actually outputs a 
`list[dict]`, and calling it directly results in an `AttributeError: ‘dict’ 
object has no attribute ‘get_field’`.
   
   Thanks for pointing this out.
   I updated the implementation to support both `InternalRow` and `dict` 
representations of nested rows.
   
   Instead of accessing fields directly through `InternalRow.get_field()`, the 
aggregator now uses a common `FieldProjection` helper to extract configured 
fields from either row representation. This keeps the aggregation logic 
unchanged while making it compatible with the PyArrow → Polars read path.


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