Make one-column batch
| 2781 | |
| 2782 | // Make one-column batch |
| 2783 | std::shared_ptr<RecordBatch> MakeBatch(std::shared_ptr<Array> column) { |
| 2784 | return RecordBatch::Make(schema({field("f", column->type())}), column->length(), |
| 2785 | {column}); |
| 2786 | } |
| 2787 | |
| 2788 | // Make one-column batch with a dictionary array |
| 2789 | std::shared_ptr<RecordBatch> MakeBatch(std::shared_ptr<DataType> type, |