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 @@ -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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N.B. The cast to ArrayList isn't necessary.

This line change is due to a bugfix in Avro, tightening up the permitted values when setting reflected fields. The right thing to do here is to put an array of the actual type in the container (as opposed to Object[]).

The TestReflectLogicalTypes#testReadUUIDArray fails here without this change.

.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.7.1-jre</guava.version>
<brotli-codec.version>0.1.1</brotli-codec.version>
<assertj.version>3.27.7</assertj.version>
Expand Down
Loading