MCPcopy Create free account
hub / github.com/bytedance/bolt / exportArrayToArrowSchema

Function exportArrayToArrowSchema

bolt/vector/arrow/Bridge.cpp:2068–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2066 // The Bolt type is the type of the `values` child.
2067 return importFromArrow(*arrowSchema.children[1]);
2068
2069 default:
2070 break;
2071 }
2072 } break;
2073
2074 default:
2075 break;
2076 }
2077 BOLT_USER_FAIL(
2078 "Unable to convert '{}' ArrowSchema format type to Bolt.", format);
2079}
2080
2081void exportMapToArrowSchema(
2082 const MapVector& maps,
2083 ArrowSchema& arrowSchema,
2084 const ArrowOptions& options,
2085 BoltToArrowSchemaBridgeHolder* bridgeHolder,
2086 memory::MemoryPool* pool) {
2087 auto& type = maps.type();
2088 // Need to wrap the key and value types in a struct type.

Callers 1

exportToArrowFunction · 0.85

Calls 6

asArrayMethod · 0.80
setChildAtIndexMethod · 0.80
exportToArrowFunction · 0.70
typeMethod · 0.45
equivalentMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected