| 578 | } |
| 579 | |
| 580 | vector<flatbuffers::Offset<org::apache::impala::fb::FbIcebergPartitionField>> |
| 581 | createRawPartitionFields(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. |
no test coverage detected