| 845 | // check the ByteArray case manually. |
| 846 | |
| 847 | TEST_F(TestReadDecimals, Decimal32ByteArray) { |
| 848 | const std::vector<std::vector<uint8_t>> big_endian_decimals = { |
| 849 | // 123456 |
| 850 | {1, 226, 64}, |
| 851 | // 987654 |
| 852 | {15, 18, 6}, |
| 853 | // -123456 |
| 854 | {255, 254, 29, 192}, |
| 855 | }; |
| 856 | |
| 857 | ArrowReaderProperties properties = default_arrow_reader_properties(); |
| 858 | properties.set_smallest_decimal_enabled(true); |
| 859 | |
| 860 | auto expected = |
| 861 | ArrayFromJSON(::arrow::decimal32(6, 3), R"(["123.456", "987.654", "-123.456"])"); |
| 862 | CheckReadFromByteArrays(LogicalType::Decimal(6, 3), big_endian_decimals, *expected, |
| 863 | properties); |
| 864 | } |
| 865 | |
| 866 | TEST_F(TestReadDecimals, Decimal64ByteArray) { |
| 867 | const std::vector<std::vector<uint8_t>> big_endian_decimals = { |
nothing calls this directly
no test coverage detected