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

Function CheckSimpleRoundtrip

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

Source from the content-addressed store, hash-verified

527}
528
529void CheckSimpleRoundtrip(const std::shared_ptr<Table>& table, int64_t row_group_size,
530 const std::shared_ptr<ArrowWriterProperties>&
531 arrow_writer_properties = default_arrow_writer_properties(),
532 const ArrowReaderProperties& arrow_reader_properties =
533 default_arrow_reader_properties()) {
534 std::shared_ptr<Table> result;
535 ASSERT_NO_FATAL_FAILURE(
536 DoSimpleRoundtrip(table, false /* use_threads */, row_group_size, {}, &result,
537 arrow_writer_properties, arrow_reader_properties));
538 ::arrow::AssertSchemaEqual(*table->schema(), *result->schema(),
539 /*check_metadata=*/false);
540 ASSERT_OK(result->ValidateFull());
541
542 ::arrow::AssertTablesEqual(*table, *result, false);
543
544 ASSERT_NO_FATAL_FAILURE(
545 DoRoundTripWithBatches(table, false /* use_threads */, row_group_size, {}, &result,
546 arrow_writer_properties, arrow_reader_properties));
547 ::arrow::AssertSchemaEqual(*table->schema(), *result->schema(),
548 /*check_metadata=*/false);
549 ASSERT_OK(result->ValidateFull());
550
551 ::arrow::AssertTablesEqual(*table, *result, false);
552}
553
554static std::shared_ptr<GroupNode> MakeSimpleSchema(const DataType& type,
555 Repetition::type repetition) {

Callers 2

CheckRoundTripMethod · 0.85
TESTFunction · 0.85

Calls 7

DoSimpleRoundtripFunction · 0.85
AssertTablesEqualFunction · 0.85
DoRoundTripWithBatchesFunction · 0.85
schemaMethod · 0.45
ValidateFullMethod · 0.45

Tested by

no test coverage detected