pnowojski commented on a change in pull request #8621: 
[FLINK-12682][connectors] StringWriter support custom row delimiter
URL: https://github.com/apache/flink/pull/8621#discussion_r300412460
 
 

 ##########
 File path: 
flink-connectors/flink-connector-filesystem/src/main/java/org/apache/flink/streaming/connectors/fs/StringWriter.java
 ##########
 @@ -82,7 +103,7 @@ public void open(FileSystem fs, Path path) throws 
IOException {
        public void write(T element) throws IOException {
                FSDataOutputStream outputStream = getStream();
                outputStream.write(element.toString().getBytes(charset));
-               outputStream.write('\n');
+               outputStream.write(rowDelimiterBytes);
 
 Review comment:
   You are still not testing anywhere, that `rowDelimiterBytes` field is being 
correctly used. Please add a test in `StringWriterTest` class, where you write 
some elements with standard and custom delimiter and that result is as you 
expected.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to