| 776 | } |
| 777 | |
| 778 | void DoPutTest::TestFloats() { |
| 779 | auto descr = FlightDescriptor::Path({"floats"}); |
| 780 | RecordBatchVector batches; |
| 781 | auto a0 = ArrayFromJSON(float32(), "[0, 1.2, -3.4, 5.6, null]"); |
| 782 | auto a1 = ArrayFromJSON(float64(), "[0, 1.2, -3.4, 5.6, null]"); |
| 783 | auto schema = arrow::schema({field("f0", a0->type()), field("f1", a1->type())}); |
| 784 | batches.push_back(RecordBatch::Make(schema, a0->length(), {a0, a1})); |
| 785 | |
| 786 | CheckDoPut(descr, schema, batches); |
| 787 | } |
| 788 | |
| 789 | void DoPutTest::TestEmptyBatch() { |
| 790 | // Sending and receiving a 0-sized batch shouldn't fail |