Skip to content

Commit

Permalink
Bump Beam SDK to 2.60.0 (#2658)
Browse files Browse the repository at this point in the history
Downgrade to 2.52.0
  • Loading branch information
akkomar authored Oct 22, 2024
1 parent e90cebc commit 50925a1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ingestion-beam/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
<groupId>org.apache.beam</groupId>
<artifactId>beam-sdks-java-extensions-json-jackson</artifactId>
</dependency>
<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>beam-sdks-java-extensions-avro</artifactId>
</dependency>
<dependency>
<groupId>org.apache.beam</groupId>
<artifactId>beam-sdks-java-io-google-cloud-platform</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.apache.avro.io.DatumReader;
import org.apache.avro.io.Decoder;
import org.apache.avro.io.DecoderFactory;
import org.apache.beam.sdk.io.AvroIO.RecordFormatter;
import org.apache.beam.sdk.extensions.avro.io.AvroIO.RecordFormatter;
import org.apache.beam.sdk.io.gcp.pubsub.PubsubMessage;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.apache.avro.generic.GenericRecord;
import org.apache.avro.io.DatumReader;
import org.apache.avro.io.Decoder;
import org.apache.beam.sdk.io.AvroIO.RecordFormatter;
import org.apache.beam.sdk.extensions.avro.io.AvroIO.RecordFormatter;
import org.apache.beam.sdk.io.gcp.pubsub.PubsubMessage;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.coders.ListCoder;
import org.apache.beam.sdk.coders.StringUtf8Coder;
import org.apache.beam.sdk.io.AvroIO;
import org.apache.beam.sdk.extensions.avro.io.AvroIO;
import org.apache.beam.sdk.io.Compression;
import org.apache.beam.sdk.io.FileIO;
import org.apache.beam.sdk.io.TextIO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mozilla.telemetry.avro;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
Expand Down Expand Up @@ -96,7 +97,7 @@ public void testFormatWithNestedObjectStruct() {
GenericRecord shape = (GenericRecord) record.get("shape");
GenericRecord quad = (GenericRecord) shape.get("quadrilateral");
assertEquals(true, quad.get("rhombus"));
assertEquals(null, shape.get("triangle"));
assertFalse(shape.hasField("triangle"));
}

@Test
Expand Down Expand Up @@ -338,6 +339,6 @@ public void testFormatCorrectsFieldNames() {
assertEquals(true, record.get("test_dot"));
assertEquals(true, record.get("_test_prefix_hyphen"));
assertEquals(true, record.get("_0_test_prefix_number"));
assertEquals(null, record.get("$test_bad_symbol"));
assertFalse(record.hasField("$test_bad_symbol"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ public class BeamDependenciesIntegrationTest {
public void checkVersions() throws Exception {
final String beamVersion = System.getProperty("beam.version");
final Pom beamCore = getPom("org.apache.beam", "beam-sdks-java-core", beamVersion);
final Pom avroExtension = getPom("org.apache.beam", "beam-sdks-java-extensions-avro",
beamVersion);

final Map<String, Optional<String>> expectedVersions = ImmutableMap.of(//
"avro.version", beamCore.getVersion("org.apache.avro", "avro"), //
"avro.version", avroExtension.getVersion("org.apache.avro", "avro"), //
"jackson.version", beamCore.getVersion("com.fasterxml.jackson.core", "jackson-core"));

final Map<String, Optional<String>> actualVersions = ImmutableMap.of(//
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
<argLine>-Xmx1024m -Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>

<auto-value.version>1.10.4</auto-value.version>
<beam.version>2.51.0</beam.version>
<beam.version>2.60.0</beam.version>

<!-- Keep these dependency versions in sync with what is pulled in by beam;
check https://mvnrepository.com/artifact/org.apache.beam -->
<jackson.version>2.14.1</jackson.version>
<avro.version>1.8.2</avro.version>
<jackson.version>2.15.4</jackson.version>
<avro.version>1.11.3</avro.version>

<!-- The version pulled in by avro does not support Apple Silicon as of Jan 2022 -->
<snappy.version>1.1.10.5</snappy.version>
Expand Down

0 comments on commit 50925a1

Please sign in to comment.