Skip to content

Commit

Permalink
[hotfix] [kafka] Add missing serialVersionUIDs to all Kafka connector…
Browse files Browse the repository at this point in the history
… Serializable classes
  • Loading branch information
tzulitai committed Jan 12, 2018
1 parent 4ceabed commit 4ade826
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
@PublicEvolving
public class FlinkKafka011Exception extends FlinkException {

private static final long serialVersionUID = 920269130311214200L;

private final FlinkKafka011ErrorCode errorCode;

public FlinkKafka011Exception(FlinkKafka011ErrorCode errorCode, String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
@PublicEvolving
public class FlinkFixedPartitioner<T> extends FlinkKafkaPartitioner<T> {

private static final long serialVersionUID = -3785320239953858777L;

private int parallelInstanceId;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
*/
@PublicEvolving
public class JSONDeserializationSchema extends AbstractDeserializationSchema<ObjectNode> {

private static final long serialVersionUID = -1699854177598621044L;

private ObjectMapper mapper;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
*/
@PublicEvolving
public class JSONKeyValueDeserializationSchema implements KeyedDeserializationSchema<ObjectNode> {

private static final long serialVersionUID = 1509391548173891955L;

private final boolean includeMetadata;
private ObjectMapper mapper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
@PublicEvolving
public class JsonRowDeserializationSchema implements DeserializationSchema<Row> {

private static final long serialVersionUID = -228294330688809195L;

/** Type information describing the result type. */
private final TypeInformation<Row> typeInfo;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
*/
@PublicEvolving
public class JsonRowSerializationSchema implements SerializationSchema<Row> {

private static final long serialVersionUID = -2885556750743978636L;

/** Fields names in the input Row object. */
private final String[] fieldNames;
/** Object mapper that is used to create output JSON objects. */
Expand Down

0 comments on commit 4ade826

Please sign in to comment.