| 2157 | } |
| 2158 | |
| 2159 | TEST(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 | |
| 2171 | TEST(InvalidSchema, NonNullableNullType) { |
| 2172 | const auto& field = ::arrow::field("f0", ::arrow::null(), /*nullable=*/false); |
nothing calls this directly
no test coverage detected