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

Method MaybeSetParquetSchema

cpp/src/parquet/arrow/arrow_schema_test.cc:2200–2207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2198 virtual void SetUp() {}
2199
2200 ::arrow::Status MaybeSetParquetSchema(const NodePtr& column) {
2201 descriptor_.reset(new SchemaDescriptor());
2202 manifest_.reset(new SchemaManifest());
2203 descriptor_->Init(GroupNode::Make("root", Repetition::REQUIRED, {column}));
2204 return SchemaManifest::Make(descriptor_.get(),
2205 std::shared_ptr<const ::arrow::KeyValueMetadata>(),
2206 ArrowReaderProperties(), manifest_.get());
2207 }
2208 void SetParquetSchema(const NodePtr& column) {
2209 ASSERT_OK(MaybeSetParquetSchema(column));
2210 }

Callers

nothing calls this directly

Calls 5

MakeFunction · 0.50
resetMethod · 0.45
InitMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected