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

Method AddColumn

cpp/src/arrow/record_batch.cc:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49namespace arrow {
50
51Result<std::shared_ptr<RecordBatch>> RecordBatch::AddColumn(
52 int i, std::string field_name, const std::shared_ptr<Array>& column) const {
53 auto field = ::arrow::field(std::move(field_name), column->type());
54 return AddColumn(i, field, column);
55}
56
57std::shared_ptr<Array> RecordBatch::GetColumnByName(const std::string& name) const {
58 auto i = schema_->GetFieldIndex(name);

Callers 9

garrow_table_add_columnFunction · 0.45
table_test.ccFile · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
ReadNextMethod · 0.45
RecordBatch__AddColumnFunction · 0.45
Table__AddColumnFunction · 0.45

Calls 2

fieldFunction · 0.70
typeMethod · 0.45

Tested by 1

ASSERT_OK_AND_ASSIGNFunction · 0.36