| 2939 | }; |
| 2940 | |
| 2941 | std::shared_ptr<Table> InvalidTable() { |
| 2942 | auto type = ::arrow::int8(); |
| 2943 | auto field = ::arrow::field("a", type); |
| 2944 | auto schema = ::arrow::schema({field, field}); |
| 2945 | |
| 2946 | // Invalid due to array size not matching |
| 2947 | auto array1 = ArrayFromJSON(type, "[1, 2]"); |
| 2948 | auto array2 = ArrayFromJSON(type, "[1]"); |
| 2949 | return Table::Make(schema, {array1, array2}); |
| 2950 | } |
| 2951 | |
| 2952 | TEST(TestArrowReadWrite, InvalidTable) { |
| 2953 | // ARROW-4774: Shouldn't segfault on writing an invalid table. |
no test coverage detected