jrmccluskey commented on code in PR #41201:
URL: https://github.com/apache/beam/pull/41201#discussion_r4756153782


##########
CHANGES.md:
##########
@@ -136,6 +136,7 @@
 ## Bugfixes
 
 * (YAML) Fixed SQL-backed Join generating invalid SQL syntax (missing ON 
clause or forward-referenced tables) when joining 3+ inputs 
([#41052](https://github.com/apache/beam/issues/41052)).
+* (Python/YAML) `ReadFromParquet(as_rows=True)`, and other batched DoFns that 
output `pyarrow` batches of schema'd elements, now give struct values, 
including structs inside lists, as rows of their declared type. They were plain 
dicts, so `row.address.city` raised `AttributeError`. Code that read them as 
dicts (`row.address['city']`) needs attribute access now 
([#41100](https://github.com/apache/beam/issues/41100)).

Review Comment:
   This is a breaking change, please categorize it as such. 



##########
sdks/python/apache_beam/typehints/arrow_type_compatibility.py:
##########
@@ -21,17 +21,27 @@
 """
 
 # ruff: noqa: UP006
+import collections.abc
+import dataclasses
 from functools import partial
+from typing import Any
+from typing import Callable
 from typing import Dict
 from typing import List
 from typing import Optional
 from typing import Sequence
 from typing import Tuple

Review Comment:
   Use PEP 585 generics for these types (built-in `dict`, `list`, and `tuple`, 
collections.abc `Callable` and `Sequence`)



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