Skip to content

Commit d7a1ba4

Browse files
gengliangwangRobert Kruszewski
authored andcommitted
[SPARK-24771][BUILD] Upgrade Apache AVRO to 1.8.2
## What changes were proposed in this pull request? Upgrade Apache Avro from 1.7.7 to 1.8.2. The major new features: 1. More logical types. From the spec of 1.8.2 https://avro.apache.org/docs/1.8.2/spec.html#Logical+Types we can see comparing to [1.7.7](https://avro.apache.org/docs/1.7.7/spec.html#Logical+Types), the new version support: - Date - Time (millisecond precision) - Time (microsecond precision) - Timestamp (millisecond precision) - Timestamp (microsecond precision) - Duration 2. Single-object encoding: https://avro.apache.org/docs/1.8.2/spec.html#single_object_encoding This PR aims to update Apache Spark to support these new features. ## How was this patch tested? Unit test Author: Gengliang Wang <[email protected]> Closes apache#21761 from gengliangwang/upgrade_avro_1.8.
1 parent d20ecaf commit d7a1ba4

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<codahale.metrics.version>3.2.5</codahale.metrics.version>
149149
<dropwizard.version>1.0.0</dropwizard.version>
150150
<spark-influx-sink.version>0.4.0</spark-influx-sink.version>
151-
<avro.version>1.8.1</avro.version>
151+
<avro.version>1.8.2</avro.version>
152152
<avro.mapred.classifier>hadoop2</avro.mapred.classifier>
153153
<jets3t.version>0.9.4</jets3t.version>
154154
<aws.kinesis.client.version>1.7.3</aws.kinesis.client.version>

sql/core/pom.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,6 @@
174174
<artifactId>parquet-avro</artifactId>
175175
<scope>test</scope>
176176
</dependency>
177-
<!--
178-
This version of avro test-dep is different from the one defined
179-
in the parent pom. The parent pom has avro 1.7.7 test-dep for Hadoop.
180-
Here, ParquetAvroCompatibilitySuite uses parquet-avro's AvroParquetWriter
181-
which uses avro 1.8.0+ specific API. In Maven 3, we need to have
182-
this here to have different versions for the same artifact.
183-
-->
184-
<dependency>
185-
<groupId>org.apache.avro</groupId>
186-
<artifactId>avro</artifactId>
187-
<version>1.8.1</version>
188-
<scope>test</scope>
189-
</dependency>
190177
<dependency>
191178
<groupId>org.mockito</groupId>
192179
<artifactId>mockito-core</artifactId>

0 commit comments

Comments
 (0)