YMBSKLK commented on code in PR #4543:
URL:
https://github.com/apache/incubator-seatunnel/pull/4543#discussion_r1162274957
##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/TextWriteStrategy.java:
##########
@@ -80,6 +85,10 @@ public void write(@NonNull SeaTunnelRow seaTunnelRow) {
FSDataOutputStream fsDataOutputStream =
getOrCreateOutputStream(filePath);
try {
if (isFirstWrite.get(filePath)) {
+ if(isPrintHeader){
Review Comment:
When exporting data to CSV or TXT, if the field names are not exported, it
is often necessary to export the field names.
--
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]