| 2127 | } |
| 2128 | |
| 2129 | TEST(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 | |
| 2141 | TEST(InvalidSchema, NonNullableNullType) { |
| 2142 | const auto& field = ::arrow::field("f0", ::arrow::null(), /*nullable=*/false); |
nothing calls this directly
no test coverage detected