Skip to content

Commit

Permalink
Try disabling aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed Dec 26, 2024
1 parent 60c2480 commit 1a00a4d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.Map;
import org.apache.beam.sdk.expansion.ExternalTransformRegistrar;
import org.apache.beam.sdk.io.aws2.common.ClientConfiguration;
import org.apache.beam.sdk.io.aws2.kinesis.KinesisIO;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.ExternalTransformBuilder;
import org.apache.beam.sdk.transforms.PTransform;
Expand Down Expand Up @@ -131,6 +132,7 @@ public PTransform<PCollection<byte[]>, KinesisIO.Write.Result> buildExternal(
.skipCertificateVerification(!configuration.verifyCertificate)
.build())
.withPartitioner(p -> pk)
.withRecordAggregationDisabled()
.withSerializer(serializer);

return writeTransform;
Expand Down

0 comments on commit 1a00a4d

Please sign in to comment.