| 263 | } |
| 264 | |
| 265 | Status MakeBooleanBatchSized(const int length, std::shared_ptr<RecordBatch>* out) { |
| 266 | // Make the schema |
| 267 | auto f0 = field("f0", boolean()); |
| 268 | auto f1 = field("f1", boolean()); |
| 269 | auto schema = ::arrow::schema({f0, f1}); |
| 270 | |
| 271 | std::shared_ptr<Array> a0, a1; |
| 272 | RETURN_NOT_OK(MakeRandomBooleanArray(length, true, &a0)); |
| 273 | RETURN_NOT_OK(MakeRandomBooleanArray(length, false, &a1)); |
| 274 | *out = RecordBatch::Make(schema, length, {a0, a1}); |
| 275 | return Status::OK(); |
| 276 | } |
| 277 | |
| 278 | Status MakeBooleanBatch(std::shared_ptr<RecordBatch>* out) { |
| 279 | return MakeBooleanBatchSized(1000, out); |
no test coverage detected