jonded94 opened a new issue, #47602:
URL: https://github.com/apache/arrow/issues/47602

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
   In Python, pyarrow.Schema before was not hashable when it has metadata set.
   
   ```
   >>> import pyarrow
   >>> schema = pyarrow.schema([], metadata={b"1": b"1"})
   >>> hash(schema)
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "pyarrow/types.pxi", line 2921, in pyarrow.lib.Schema.__hash__
   TypeError: unhashable type: 'dict'
   ```
   This is because the metadata (which is a dict) was tried to be hashed as-is, 
which doesn't work.
   
   Corresponding fix is contianed in this PR:
   https://github.com/apache/arrow/pull/47601
   
   ### Component(s)
   
   Python


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