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

Method RemoveColumn

cpp/src/arrow/table.cc:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 Result<std::shared_ptr<Table>> RemoveColumn(int i) const override {
113 ARROW_ASSIGN_OR_RAISE(auto new_schema, schema_->RemoveField(i));
114
115 return Table::Make(std::move(new_schema), internal::DeleteVectorElement(columns_, i),
116 this->num_rows());
117 }
118
119 Result<std::shared_ptr<Table>> AddColumn(
120 int i, std::shared_ptr<Field> field_arg,

Callers 11

TEST_FFunction · 0.45
table_test.ccFile · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
PartitionMethod · 0.45
MakePartitionSkipDatasetFunction · 0.45
TESTFunction · 0.45
Table__RemoveColumnFunction · 0.45

Calls 3

DeleteVectorElementFunction · 0.85
MakeFunction · 0.70
num_rowsMethod · 0.45

Tested by 5

TEST_FFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
MakePartitionSkipDatasetFunction · 0.36
TESTFunction · 0.36