MCPcopy Create free account
hub / github.com/apache/arrow / InvalidTable

Function InvalidTable

cpp/src/parquet/arrow/arrow_reader_writer_test.cc:3077–3086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3075};
3076
3077std::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
3088TEST(TestArrowReadWrite, InvalidTable) {
3089 // ARROW-4774: Shouldn't segfault on writing an invalid table.

Callers 1

TESTFunction · 0.85

Calls 4

ArrayFromJSONFunction · 0.85
fieldFunction · 0.70
schemaFunction · 0.50
MakeFunction · 0.50

Tested by

no test coverage detected