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

Method ReplaceSchemaMetadata

cpp/src/arrow/table.cc:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 std::shared_ptr<Table> ReplaceSchemaMetadata(
160 const std::shared_ptr<const KeyValueMetadata>& metadata) const override {
161 auto new_schema = schema_->WithMetadata(metadata);
162 return Table::Make(std::move(new_schema), columns_);
163 }
164
165 Result<std::shared_ptr<Table>> Flatten(MemoryPool* pool) const override {
166 std::vector<std::shared_ptr<Field>> flattened_fields;

Callers 5

TestSessionFunction · 0.45
PromoteTableToSchemaFunction · 0.45
TEST_FFunction · 0.45

Calls 2

MakeFunction · 0.70
WithMetadataMethod · 0.45

Tested by 2

TestSessionFunction · 0.36
TEST_FFunction · 0.36