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

Method CheckRoundtrip

cpp/src/parquet/encoding_test.cc:2528–2545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2526
2527template <>
2528void TestDeltaByteArrayEncodingDirectPut<ByteArrayType>::CheckRoundtrip() {
2529 constexpr int64_t kSize = 500;
2530 constexpr int32_t kMinLength = 0;
2531 constexpr int32_t kMaxLength = 10;
2532 constexpr int32_t kNumUnique = 10;
2533 constexpr double kNullProbability = 0.25;
2534 constexpr int kSeed = 42;
2535 ::arrow::random::RandomArrayGenerator rag{kSeed};
2536 std::shared_ptr<::arrow::Array> values = rag.BinaryWithRepeats(
2537 /*size=*/1, /*unique=*/1, kMinLength, kMaxLength, kNullProbability);
2538 CheckDirectPut(values);
2539
2540 for (int i = 0; i < 10; ++i) {
2541 values = rag.BinaryWithRepeats(kSize, kNumUnique, kMinLength, kMaxLength,
2542 kNullProbability);
2543 CheckDirectPut(values);
2544 }
2545}
2546
2547template <>
2548void TestDeltaByteArrayEncodingDirectPut<FLBAType>::CheckRoundtrip() {

Callers 1

TYPED_TESTFunction · 0.45

Calls 2

BinaryWithRepeatsMethod · 0.80
FixedSizeBinaryMethod · 0.45

Tested by

no test coverage detected