MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / MAP>

Method MAP>

src/common/arrow/arrow_row_batch.cpp:376–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374
375template<>
376void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::MAP>(ArrowVector* vector,
377 const Value& value, std::int64_t pos, bool fallbackExtensionTypes) {
378 // Verify all keys are not null
379 for (auto i = 0u; i < value.childrenSize; ++i) {
380 if (value.children[i]->children[0]->isNull()) {
381 throw RuntimeException{
382 std::format("Cannot convert map with null key to Arrow: {}", value.toString())};
383 }
384 }
385 return templateCopyNonNullValue<LogicalTypeID::LIST>(vector, value, pos,
386 fallbackExtensionTypes);
387}
388
389template<>
390void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::STRUCT>(ArrowVector* vector,

Callers

nothing calls this directly

Calls 2

isNullMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected