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

Function createRawPartitionFields

be/src/runtime/dml-exec-state.cc:580–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580vector<flatbuffers::Offset<org::apache::impala::fb::FbIcebergPartitionField>>
581createRawPartitionFields(flatbuffers::FlatBufferBuilder& fbb,
582 const OutputPartition& partition) {
583 using namespace org::apache::impala::fb;
584 vector<flatbuffers::Offset<FbIcebergPartitionField>> raw_partition_fields;
585 for (const string& partition_name : partition.raw_partition_names) {
586 auto data = reinterpret_cast<const uint8_t*>(partition_name.data());
587 auto fb_vector = fbb.CreateVector(data, partition_name.size());
588 raw_partition_fields.push_back(CreateFbIcebergPartitionField(fbb, fb_vector));
589 }
590 return raw_partition_fields;
591}
592
593// Helper function to create an Iceberg data file FlatBuffer with deletion vectors.
594// Used for puffin files where we need to create one entry per data file with DVs.

Calls 3

push_backMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected