()
| 1627 | |
| 1628 | |
| 1629 | def test_sequence_decimal(): |
| 1630 | data = [decimal.Decimal('1234.183'), decimal.Decimal('8094.234')] |
| 1631 | for type in [pa.decimal32, pa.decimal64, pa.decimal128, pa.decimal256]: |
| 1632 | arr = pa.array(data, type=type(precision=7, scale=3)) |
| 1633 | assert arr.to_pylist() == data |
| 1634 | |
| 1635 | |
| 1636 | def test_sequence_decimal_different_precisions(): |