iemejia opened a new pull request, #3731: URL: https://github.com/apache/parquet-java/pull/3731
### Rationale for this change Upgrades the Avro dependency from 1.11.5 to 1.12.2. Avro 1.12 introduces some behavioral and API-compatibility changes that require corresponding adjustments in `parquet-avro`: - **Null `logicalType` NPE**: `GenericData.getConversionByClass` no longer null-checks `logicalType` internally, so `AvroRecordConverter.newConverter` now guards against a null `logicalType` to avoid an NPE. - **Stricter array typing**: Avro 1.12's `ReflectData.setField` performs stricter type checks, so `AvroArrayConverter.end` now creates a typed array (via `Array.newInstance(elementClass, 0)`) instead of an untyped `Object[]`. - **ClassSecurityValidator**: Avro 1.12's `ClassSecurityValidator` requires whitelisting serializable packages; the `org.apache.avro.SERIALIZABLE_PACKAGES` surefire system property is added for the tests. ### What changes are included in this PR? - Bump `avro.version` to `1.12.2` in the root `pom.xml`. - Guard against null `logicalType` in `AvroRecordConverter.newConverter`. - Create typed arrays instead of `Object[]` in `AvroArrayConverter.end`. - Add the `SERIALIZABLE_PACKAGES` surefire property in `parquet-avro/pom.xml`. ### Are these changes tested? Yes, covered by the existing `parquet-avro` test suite. ### Are there any user-facing changes? Users of `parquet-avro` will now pull in Avro 1.12.2. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
