[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-3002) Inconsistent DataType Hashing

Sam Oluwalana created ARROW-3002:

             Summary: Inconsistent DataType Hashing
                 Key: ARROW-3002
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Sam Oluwalana

>>> x = pa.field('record', pa.struct([pa.field('x', pa.int32(), nullable=False)]))
>>> y = pa.field('record', pa.struct([pa.field('x', pa.int32(), nullable=True)]))
>>> x.__hash__()
>>> y.__hash__()
>>> x.type
StructType(struct<x: int32>)
>>> x.type.__hash__()
>>> y.type.__hash__()
>>> x
pyarrow.Field<record: struct<x: int32>>
>>> y
pyarrow.Field<record: struct<x: int32>>

The StructType should take nullable fields into account when generating the hash.

This message was sent by Atlassian JIRA

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-arrow-development/msg05369.html on line 108
Call Stack
10.0021358376{main}( ).../msg05369.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-arrow-development/msg05369.html on line 108
Call Stack
10.0021358376{main}( ).../msg05369.html:0