You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/05/31 08:11:04 UTC

[GitHub] [flink] lamber-ken commented on a change in pull request #7987: [FLINK-11820][serialization] SimpleStringSchema handle message record which value is null

lamber-ken commented on a change in pull request #7987: [FLINK-11820][serialization] SimpleStringSchema handle message record which value is null
URL: https://github.com/apache/flink/pull/7987#discussion_r289295272
 
 

 ##########
 File path: flink-core/src/test/java/org/apache/flink/api/common/serialization/SimpleStringSchemaTest.java
 ##########
 @@ -50,4 +50,12 @@ public void testSerializability() throws Exception {
 
 		assertEquals(schema.getCharset(), copy.getCharset());
 	}
+
+	@Test
+	public void testDeserializeWithNullValue() throws Exception {
+		final SimpleStringSchema schema = new SimpleStringSchema();
+		final String value = schema.deserialize(null);
+
+		assertEquals(value, null);
 
 Review comment:
   right

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services