| 3075 | }; |
| 3076 | |
| 3077 | std::shared_ptr<Table> InvalidTable() { |
| 3078 | auto type = ::arrow::int8(); |
| 3079 | auto field = ::arrow::field("a", type); |
| 3080 | auto schema = ::arrow::schema({field, field}); |
| 3081 | |
| 3082 | // Invalid due to array size not matching |
| 3083 | auto array1 = ArrayFromJSON(type, "[1, 2]"); |
| 3084 | auto array2 = ArrayFromJSON(type, "[1]"); |
| 3085 | return Table::Make(schema, {array1, array2}); |
| 3086 | } |
| 3087 | |
| 3088 | TEST(TestArrowReadWrite, InvalidTable) { |
| 3089 | // ARROW-4774: Shouldn't segfault on writing an invalid table. |
no test coverage detected