MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / findArrowColumnByName

Function findArrowColumnByName

src/storage/table/arrow_table_support.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static int64_t findArrowColumnByName(const ArrowSchemaWrapper& schema, const std::string& name) {
36 for (int64_t i = 0; i < schema.n_children; ++i) {
37 if (schema.children && schema.children[i] && schema.children[i]->name &&
38 name == schema.children[i]->name) {
39 return i;
40 }
41 }
42 return -1;
43}
44
45std::string ArrowTableSupport::registerArrowData(ArrowSchemaWrapper schema,
46 std::vector<ArrowArrayWrapper> arrays) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected