DhanushPillay opened a new pull request, #41737:
URL: https://github.com/apache/beam/pull/41737

   Fixes #41101
   
   `WriteToParquet` failed when a schema'd `beam.Row` element had a field 
holding another `beam.Row`. `PyarrowBatchConverter.produce_batch` passed the 
nested row object directly to `pa.array` for a struct field, which pyarrow 
rejects.
   
   This change adds an Arrow-type-aware converter that turns nested `Row` 
values (and rows inside lists and maps) into pyarrow-compatible structs before 
building the table.
   
   Added regression coverage at both the converter and `WriteToParquet` 
pipeline levels.
   
   Verification:
   - `arrow_type_compatibility_test.py` and `parquetio_test.py`: 103 passed, 1 
skipped
   - Original issue repro writes and reads back nested rows correctly
   - `ruff` and `yapf`: clean
   - `./gradlew formatChanges validateChanges`: successful
   


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