| 769 | } |
| 770 | |
| 771 | Status Assemble(const std::shared_ptr<Array>& dictionary) { |
| 772 | // Make a dummy record batch. A bit tedious as we have to make a schema |
| 773 | auto schema = arrow::schema({arrow::field("dictionary", dictionary->type())}); |
| 774 | auto batch = RecordBatch::Make(std::move(schema), dictionary->length(), {dictionary}); |
| 775 | return RecordBatchSerializer::Assemble(*batch); |
| 776 | } |
| 777 | |
| 778 | private: |
| 779 | int64_t dictionary_id_; |
no test coverage detected