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

Method AssertScanEquals

cpp/src/arrow/dataset/dataset_test.cc:602–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600
601 template <typename TupleType>
602 void AssertScanEquals(std::shared_ptr<Scanner> scanner,
603 const std::vector<TupleType>& expected_rows) {
604 std::vector<std::string> columns;
605 for (const auto& field : scanner->options()->projected_schema->fields()) {
606 columns.push_back(field->name());
607 }
608
609 ASSERT_OK_AND_ASSIGN(auto actual, scanner->ToTable());
610 std::shared_ptr<Table> expected;
611 ASSERT_OK(stl::TableFromTupleRange(default_memory_pool(), expected_rows, columns,
612 &expected));
613 AssertTablesEqual(*expected, *actual, false, true);
614 }
615
616 template <typename TupleType>
617 void AssertBuilderEquals(std::shared_ptr<ScannerBuilder> builder,

Callers

nothing calls this directly

Calls 7

TableFromTupleRangeFunction · 0.85
default_memory_poolFunction · 0.85
AssertTablesEqualFunction · 0.85
push_backMethod · 0.80
fieldsMethod · 0.45
optionsMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected