Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
fix: pulsar with flink debezium-json format bug (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
haormj authored Jul 30, 2021
1 parent c7d1cf5 commit a38b809
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import org.apache.flink.api.common.serialization.DeserializationSchema;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.util.Collector;

import java.io.IOException;

Expand Down Expand Up @@ -47,6 +48,11 @@ public synchronized T deserialize(byte[] bytes) throws IOException {
return deserializationSchema.deserialize(bytes);
}

@Override
public synchronized void deserialize(byte[] message, Collector<T> out) throws IOException {
deserializationSchema.deserialize(message, out);
}

@Override
public synchronized boolean isEndOfStream(T object) {
return deserializationSchema.isEndOfStream(object);
Expand Down

0 comments on commit a38b809

Please sign in to comment.