You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2019/09/18 14:45:00 UTC
[jira] [Commented] (ARROW-2719) [Python/C++] ArrowSchema not
hashable
[ https://issues.apache.org/jira/browse/ARROW-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16932516#comment-16932516 ]
Antoine Pitrou commented on ARROW-2719:
---------------------------------------
This has been fixed in the meantime:
{code:python}
>>> sch = pa.schema([('ints', pa.int16()), ('strs', pa.string())])
>>> hash(sch)
988864331374776575
>>> s = {sch}
>>> sch in s
True
>>> pa.schema([('ints', pa.int16()), ('strs', pa.string())]) in s
True
>>> pa.schema([('ints', pa.int32()), ('strs', pa.string())]) in s
False
{code}
> [Python/C++] ArrowSchema not hashable
> -------------------------------------
>
> Key: ARROW-2719
> URL: https://issues.apache.org/jira/browse/ARROW-2719
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Python
> Reporter: Florian Jetter
> Priority: Minor
> Labels: beginner
>
> The arrow schema is immutable and should provide a way of hashing itself.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)