Isaac7777-cpu commented on issue #44231:
URL: https://github.com/apache/arrow/issues/44231#issuecomment-2409855249
Also, I would like to ask how should I incorporate pa.decimal128 and
pa.decimal256. Would the following be enough?
```
all_array_types = [
('bool', [True, False, False, True, True]),
('uint8', range(5)),
('int8', range(-4, 5)),
('uint16', range(5)),
('int16', range(-4, 5)),
('uint32', range(5)),
('int32', range(-4, 5)),
('uint64', range(5, 10)),
('int64', range(-9, 10)),
('float', [0, 0.1, 0.2, 0.3, 0.4, -0.1, -0.2, -0.3, -0.4]),
('double', [0, 0.1, 0.2, 0.3, 0.4, -0.1, -0.2, -0.3, -0.4]),
('string', ['a', 'b', None, 'ddd', 'ee']),
('binary', [b'a', b'b', b'c', b'ddd', b'ee']),
(pa.binary(3), [b'abc', b'bcd', b'cde', b'def', b'efg']),
(pa.list_(pa.int8()), [[-1, 2], [-3, 4], [5, 6], None, [9, 16]]),
(pa.large_list(pa.int16()), [[1], [-2, -3, 4], [5, 6], None, [9, 16]]),
(pa.struct([('a', pa.int8()), ('b', pa.int8())]), [
{'a': 1, 'b': 2}, None, {'a': -3, 'b': -4}, None, {'a': 5, 'b': 6}]),
(pa.decimal128(0.01), [-0.1, 0, 0.3]),
(pa.decimal256(0.01), [-0.1, 0, 0.3]),
]
```
--
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]