| 527 | } |
| 528 | |
| 529 | void 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 | |
| 554 | static std::shared_ptr<GroupNode> MakeSimpleSchema(const DataType& type, |
| 555 | Repetition::type repetition) { |
no test coverage detected