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

Function InvalidTable

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

Source from the content-addressed store, hash-verified

2939};
2940
2941std::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
2952TEST(TestArrowReadWrite, InvalidTable) {
2953 // 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