MCPcopy Create free account
hub / github.com/apache/impala / SetStructToNull

Method SetStructToNull

be/src/runtime/tuple.cc:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void Tuple::SetStructToNull(const SlotDescriptor* const slot_desc) {
310 DCHECK(slot_desc != nullptr && slot_desc->type().IsStructType());
311 DCHECK(slot_desc->children_tuple_descriptor() != nullptr);
312 SetNull(slot_desc->null_indicator_offset());
313 for (SlotDescriptor* child_slot : slot_desc->children_tuple_descriptor()->slots()) {
314 SetNull(child_slot->null_indicator_offset());
315 if (child_slot->type().IsStructType()) SetStructToNull(child_slot);
316 }
317}
318
319char* Tuple::AllocateStrings(const char* err_ctx, RuntimeState* state,
320 int64_t bytes, MemPool* pool, Status* status) noexcept {

Callers 2

WriteMethod · 0.80
WriteStructMethod · 0.80

Calls 3

IsStructTypeMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected