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
(cherry picked from commit a38b809)
  • Loading branch information
haormj authored and jianyun8023 committed Jul 30, 2021
1 parent d09612c commit d057c4a
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 d057c4a

Please sign in to comment.