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

Function TEST

cpp/src/parquet/arrow/arrow_schema_test.cc:2129–2139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2127}
2128
2129TEST(InvalidSchema, ParquetNegativeDecimalScale) {
2130 const auto& type = ::arrow::decimal128(23, -2);
2131 const auto& field = ::arrow::field("f0", type);
2132 const auto& arrow_schema = ::arrow::schema({field});
2133 std::shared_ptr<::parquet::WriterProperties> properties =
2134 ::parquet::default_writer_properties();
2135 std::shared_ptr<SchemaDescriptor> result_schema;
2136
2137 ASSERT_RAISES(IOError,
2138 ToParquetSchema(arrow_schema.get(), *properties.get(), &result_schema));
2139}
2140
2141TEST(InvalidSchema, NonNullableNullType) {
2142 const auto& field = ::arrow::field("f0", ::arrow::null(), /*nullable=*/false);

Callers

nothing calls this directly

Calls 11

ToParquetSchemaFunction · 0.85
get_data_fileFunction · 0.85
OpenFileFunction · 0.85
FromParquetSchemaFunction · 0.85
fieldFunction · 0.70
decimal128Function · 0.50
schemaFunction · 0.50
getMethod · 0.45
schemaMethod · 0.45
metadataMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected