| 787 | } |
| 788 | |
| 789 | void DoPutTest::TestEmptyBatch() { |
| 790 | // Sending and receiving a 0-sized batch shouldn't fail |
| 791 | auto descr = FlightDescriptor::Path({"ints"}); |
| 792 | RecordBatchVector batches; |
| 793 | auto a1 = ArrayFromJSON(int32(), "[]"); |
| 794 | auto schema = arrow::schema({field("f1", a1->type())}); |
| 795 | batches.push_back(RecordBatch::Make(schema, a1->length(), {a1})); |
| 796 | |
| 797 | CheckDoPut(descr, schema, batches); |
| 798 | } |
| 799 | |
| 800 | void DoPutTest::TestDicts() { |
| 801 | auto descr = FlightDescriptor::Path({"dicts"}); |