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

Method SetSchema

cpp/src/arrow/dataset/test_util_internal.h:373–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371
372 protected:
373 void SetSchema(std::vector<std::shared_ptr<Field>> fields) {
374 schema_ = schema(std::move(fields));
375 options_ = std::make_shared<ScanOptions>();
376 options_->dataset_schema = schema_;
377 ASSERT_OK_AND_ASSIGN(auto projection,
378 ProjectionDescr::FromNames(schema_->field_names(), *schema_,
379 options_->add_augmented_fields));
380 SetProjection(options_.get(), std::move(projection));
381 SetFilter(literal(true));
382 }
383
384 void SetFilter(compute::Expression filter) {
385 ASSERT_OK_AND_ASSIGN(options_->filter, filter.Bind(*schema_));

Callers 8

TestScanMethod · 0.45
TestScanBatchSizeMethod · 0.45
TestScanNoReadaheadMethod · 0.45
TestScanProjectedMethod · 0.45

Calls 4

SetProjectionFunction · 0.85
schemaFunction · 0.50
literalFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected