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

Method AddColumn

cpp/src/arrow/record_batch.cc:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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