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

Function getArrowBatchLength

src/storage/table/arrow_rel_table.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace common;
20
21static uint64_t getArrowBatchLength(const ArrowArrayWrapper& array) {
22 if (array.length > 0) {
23 return array.length;
24 }
25 if (array.n_children > 0 && array.children && array.children[0]) {
26 return array.children[0]->length;
27 }
28 return 0;
29}
30
31static int64_t findColumnIdx(const ArrowSchemaWrapper& schema, const std::string& colName) {
32 for (int64_t i = 0; i < schema.n_children; ++i) {

Callers 3

ArrowRelTableMethod · 0.70
scanFlatMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected