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

Function TEST_F

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

Source from the content-addressed store, hash-verified

36using RecordBatchVector = std::vector<std::shared_ptr<RecordBatch>>;
37
38TEST_F(TestInMemoryFragment, Scan) {
39 constexpr int64_t kBatchSize = 1024;
40 constexpr int64_t kNumberBatches = 16;
41
42 SetSchema({field("i32", int32()), field("f64", float64())});
43 auto batch = ConstantArrayGenerator::Zeroes(kBatchSize, schema_);
44 auto reader = ConstantArrayGenerator::Repeat(kNumberBatches, batch);
45
46 // Creates a InMemoryFragment of the same repeated batch.
47 RecordBatchVector batches = {static_cast<size_t>(kNumberBatches), batch};
48 auto fragment = std::make_shared<InMemoryFragment>(batches);
49
50 AssertFragmentEquals(reader.get(), fragment.get());
51}
52
53class TestInMemoryDataset : public DatasetFixtureMixin {};
54

Callers

nothing calls this directly

Calls 15

AssertDatasetHasSchemaFunction · 0.85
struct_Function · 0.85
SchemaFromColumnNamesFunction · 0.85
and_Function · 0.85
equalFunction · 0.85
field_refFunction · 0.85
greaterFunction · 0.85
TableFromJSONFunction · 0.85
AssertTablesEqualFunction · 0.85
NewScanMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
fieldFunction · 0.50

Tested by

no test coverage detected