| 752 | } |
| 753 | |
| 754 | Status Assemble(const std::shared_ptr<Array>& dictionary) { |
| 755 | // Make a dummy record batch. A bit tedious as we have to make a schema |
| 756 | auto schema = arrow::schema({arrow::field("dictionary", dictionary->type())}); |
| 757 | auto batch = RecordBatch::Make(std::move(schema), dictionary->length(), {dictionary}); |
| 758 | return RecordBatchSerializer::Assemble(*batch); |
| 759 | } |
| 760 | |
| 761 | private: |
| 762 | int64_t dictionary_id_; |
no test coverage detected