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

Function TEST

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

Source from the content-addressed store, hash-verified

2157}
2158
2159TEST(InvalidSchema, ParquetNegativeDecimalScale) {
2160 const auto& type = ::arrow::decimal128(23, -2);
2161 const auto& field = ::arrow::field("f0", type);
2162 const auto& arrow_schema = ::arrow::schema({field});
2163 std::shared_ptr<::parquet::WriterProperties> properties =
2164 ::parquet::default_writer_properties();
2165 std::shared_ptr<SchemaDescriptor> result_schema;
2166
2167 ASSERT_RAISES(IOError,
2168 ToParquetSchema(arrow_schema.get(), *properties.get(), &result_schema));
2169}
2170
2171TEST(InvalidSchema, NonNullableNullType) {
2172 const auto& field = ::arrow::field("f0", ::arrow::null(), /*nullable=*/false);

Callers

nothing calls this directly

Calls 15

ToParquetSchemaFunction · 0.85
get_data_fileFunction · 0.85
OpenFileFunction · 0.85
FromParquetSchemaFunction · 0.85
physical_typeMethod · 0.80
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