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

Method RemoveColumn

cpp/src/arrow/table.cc:111–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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