MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/parquet/arrow/arrow_reader_writer_test.cc:847–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845// check the ByteArray case manually.
846
847TEST_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
866TEST_F(TestReadDecimals, Decimal64ByteArray) {
867 const std::vector<std::vector<uint8_t>> big_endian_decimals = {

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
decimal32Function · 0.85
decimal64Function · 0.85
decimal256Function · 0.85
Int96SetNanoSecondsFunction · 0.85
default_memory_poolFunction · 0.85
MakeSimpleTableFunction · 0.85
AssertArraysEqualFunction · 0.85
CheckRoundTripFunction · 0.85
jsonFunction · 0.85

Tested by

no test coverage detected