| 311 | } |
| 312 | |
| 313 | Status MakeFloat3264BatchSized(int length, std::shared_ptr<RecordBatch>* out, |
| 314 | uint32_t seed) { |
| 315 | // Make the schema |
| 316 | auto f0 = field("f0", float32()); |
| 317 | auto f1 = field("f1", float64()); |
| 318 | auto schema = ::arrow::schema({f0, f1}); |
| 319 | |
| 320 | // Example data |
| 321 | std::shared_ptr<Array> a0, a1; |
| 322 | MemoryPool* pool = default_memory_pool(); |
| 323 | RETURN_NOT_OK(MakeRandomArray<FloatType>(length, false, pool, &a0, seed)); |
| 324 | RETURN_NOT_OK(MakeRandomArray<DoubleType>(length, true, pool, &a1, seed + 1)); |
| 325 | *out = RecordBatch::Make(schema, length, {a0, a1}); |
| 326 | return Status::OK(); |
| 327 | } |
| 328 | |
| 329 | Status MakeFloat3264Batch(std::shared_ptr<RecordBatch>* out) { |
| 330 | return MakeFloat3264BatchSized(10, out); |
no test coverage detected