joshuarobinson commented on code in PR #5796:
URL: https://github.com/apache/iceberg/pull/5796#discussion_r975194848
##########
python/pyiceberg/manifest.py:
##########
@@ -179,16 +179,20 @@ def _(struct_type: StructType, values: AvroStruct) ->
Dict[str, Any]:
@_convert_pos_to_dict.register
def _(list_type: ListType, values: List[Any]) -> Any:
"""In the case of a list, we'll go over the elements in the list to handle
complex types"""
- return [_convert_pos_to_dict(list_type.element_type, value) for value in
values]
+ return [_convert_pos_to_dict(list_type.element_type, value) for value in
values] if values is not None else None
Review Comment:
updated PR with the StructType fix as well, thanks for the catch
--
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]