lightzhao commented on code in PR #3793:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3793#discussion_r1058707189


##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/TextWriteStrategy.java:
##########
@@ -79,7 +89,18 @@ public void write(@NonNull SeaTunnelRow seaTunnelRow) {
             } else {
                 fsDataOutputStream.write(rowDelimiter.getBytes());
             }
-            
fsDataOutputStream.write(serializationSchema.serialize(seaTunnelRow));
+            if (seaTunnelRow.getFields().length != 
sinkColumnsIndexInRow.size()) {

Review Comment:
   'is_partition_field_write_in_File 'is the configuration of the sink layer. 
It can't be judged at the transform layer. I tried some methods, but finally I 
still need to create a new line. I can't find a better way to deal with it.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to