Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Broken off from ARROW-9997
When having duplicate fields, the repr fails:
In [28]: s = pa.scalar([('a', 1), ('b', 2), ('a', 3)], pa.struct([('a', 'int64'), ('b', 'int64'), ('a', 'int64')])) In [29]: 0 in s Out[29]: True In [30]: s .... KeyError: 'a'
In addition, the contains (in) operation also shouldn't accept integers (this is also the case for non-duplicate fields)
Attachments
Issue Links
- links to