pitrou commented on code in PR #37097:
URL: https://github.com/apache/arrow/pull/37097#discussion_r1295844513
##########
python/pyarrow/scalar.pxi:
##########
@@ -809,8 +809,8 @@ cdef class MapScalar(ListScalar):
Iterate over this element's values.
"""
arr = self.values
- if array is None:
- raise StopIteration
+ if arr is None:
+ return
Review Comment:
Nice catch... I guess this code path is not tested? Can you add a test for
it?
--
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]