()
| 1650 | |
| 1651 | |
| 1652 | def test_sequence_decimal(): |
| 1653 | data = [decimal.Decimal('1234.183'), decimal.Decimal('8094.234')] |
| 1654 | for type in [pa.decimal32, pa.decimal64, pa.decimal128, pa.decimal256]: |
| 1655 | arr = pa.array(data, type=type(precision=7, scale=3)) |
| 1656 | assert arr.to_pylist() == data |
| 1657 | |
| 1658 | |
| 1659 | def test_sequence_decimal_different_precisions(): |