Skip to content

Commit

Permalink
Fix for Antithesis regression test (#396)
Browse files Browse the repository at this point in the history
Need to set the serdes for the new reduce operator
  • Loading branch information
ableegoldman authored Nov 22, 2024
1 parent 9c032a1 commit 9e29126
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.kafka.streams.kstream.Joined;
import org.apache.kafka.streams.kstream.KStream;
import org.apache.kafka.streams.kstream.KTable;
import org.apache.kafka.streams.kstream.Materialized;
import org.apache.kafka.streams.kstream.Produced;
import org.apache.kafka.streams.kstream.TimeWindows;

Expand Down Expand Up @@ -87,7 +88,7 @@ protected Topology buildTopology() {
})
.groupByKey()
.windowedBy(TimeWindows.ofSizeAndGrace(Duration.ofDays(1), Duration.ofHours(12)))
.reduce(EnrichedOrder::combineWith)
.reduce(EnrichedOrder::combineWith, Materialized.with(Serdes.String(), RegressionSchema.enrichedOrderSerde()))
.toStream()
.selectKey((w, v) -> w.key())
.to(
Expand Down

0 comments on commit 9e29126

Please sign in to comment.