Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion parquet-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<!-- We need to set this system property to allow Avro to serialize these classes via the specific/reflect models -->
<!-- We need to set these system properties to allow Avro to serialize these classes via the specific/reflect models -->
<org.apache.avro.SERIALIZABLE_CLASSES>java.math.BigDecimal</org.apache.avro.SERIALIZABLE_CLASSES>
<org.apache.avro.SERIALIZABLE_PACKAGES>org.apache.parquet.avro,java.util</org.apache.avro.SERIALIZABLE_PACKAGES>
</systemPropertyVariables>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ private static Converter newConverter(
LogicalType logicalType = schema.getLogicalType();
Conversion<?> conversion;

if (knownClass != null) {
if (knownClass != null && logicalType != null) {
conversion = model.getConversionByClass(knownClass, logicalType);
} else {
conversion = model.getConversionFor(logicalType);
Expand Down Expand Up @@ -787,7 +787,8 @@ public void end() {
} else if (elementClass == double.class) {
parent.add(((DoubleArrayList) container).toDoubleArray());
} else {
parent.add(((ArrayList) container).toArray());
parent.add(((ArrayList) container)
.toArray((Object[]) java.lang.reflect.Array.newInstance(elementClass, 0)));
}
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<fastutil.version>8.5.19</fastutil.version>
<semver.api.version>0.9.33</semver.api.version>
<slf4j.version>1.7.33</slf4j.version>
<avro.version>1.11.5</avro.version>
<avro.version>1.12.2</avro.version>
<guava.version>33.6.0-jre</guava.version>
<brotli-codec.version>0.1.1</brotli-codec.version>
<assertj.version>3.27.7</assertj.version>
Expand Down
Loading