[ 
https://issues.apache.org/jira/browse/FLINK-3054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024155#comment-15024155
 ] 

Robert Metzger commented on FLINK-3054:
---------------------------------------

There is some nonsensical stuff going on with the Kafka serializers.
The {{SimpleStringSchema}}'s {{serialize()}} method is just wrong, so you can 
only use the schema for deserializing. For serializing, you have to use the 
{{JavaDefaultStringSchema}}. (This one is doing the ser and deser correctly, 
but using the commons lang {{SerializationUtils}}).

With a stricter {{SerializationSchema}}, the {{SimpleStringSchema}} wouldn't be 
wrong.  Currently, all instances of the {{SerializationSchema}} are using 
{{byte[]}} returns.

> Remove R (return) type variable from SerializationSchema
> --------------------------------------------------------
>
>                 Key: FLINK-3054
>                 URL: https://issues.apache.org/jira/browse/FLINK-3054
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming
>            Reporter: Robert Metzger
>            Assignee: Robert Metzger
>             Fix For: 1.0.0
>
>
> For the upcoming 1.0 release, I would like to remove the R type parameter 
> from the {{SerializationSchema}} class.
> The {{DeserializationSchema}} doesn't have a variable input type either and I 
> think its okay to serialize and deserialize to byte[] all the time through 
> these interfaces.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to