diff --git a/seatunnel-connectors-v2/connector-file/connector-file-cos/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/cos/sink/CosFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-cos/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/cos/sink/CosFileSinkFactory.java index 9de5386bc6b2..a7566e553e17 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-cos/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/cos/sink/CosFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-cos/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/cos/sink/CosFileSinkFactory.java @@ -48,11 +48,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-ftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/ftp/sink/FtpFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-ftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/ftp/sink/FtpFileSinkFactory.java index fad1d7506164..5b6d4d65e94b 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-ftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/ftp/sink/FtpFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-ftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/ftp/sink/FtpFileSinkFactory.java @@ -48,11 +48,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-hadoop/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/hdfs/sink/HdfsFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-hadoop/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/hdfs/sink/HdfsFileSinkFactory.java index 22e3894038ce..833f3f8fa831 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-hadoop/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/hdfs/sink/HdfsFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-hadoop/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/hdfs/sink/HdfsFileSinkFactory.java @@ -45,11 +45,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-jindo-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-jindo-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java index 08cc0143649c..8122360c7ef5 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-jindo-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-jindo-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java @@ -48,11 +48,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-local/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/local/sink/LocalFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-local/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/local/sink/LocalFileSinkFactory.java index 19a8d17ee6f4..b6f5dd507684 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-local/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/local/sink/LocalFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-local/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/local/sink/LocalFileSinkFactory.java @@ -43,11 +43,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java index 5beb859211de..27ab001f2141 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-oss/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/oss/sink/OssFileSinkFactory.java @@ -48,11 +48,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-s3/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/s3/sink/S3FileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-s3/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/s3/sink/S3FileSinkFactory.java index 86a08931a38b..cdca69ab69cb 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-s3/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/s3/sink/S3FileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-s3/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/s3/sink/S3FileSinkFactory.java @@ -53,11 +53,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON, diff --git a/seatunnel-connectors-v2/connector-file/connector-file-sftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sftp/sink/SftpFileSinkFactory.java b/seatunnel-connectors-v2/connector-file/connector-file-sftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sftp/sink/SftpFileSinkFactory.java index 8cad73445d17..84bdd3bcd484 100644 --- a/seatunnel-connectors-v2/connector-file/connector-file-sftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sftp/sink/SftpFileSinkFactory.java +++ b/seatunnel-connectors-v2/connector-file/connector-file-sftp/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sftp/sink/SftpFileSinkFactory.java @@ -48,11 +48,13 @@ public OptionRule optionRule() { FileFormat.TEXT, BaseSinkConfig.ROW_DELIMITER, BaseSinkConfig.FIELD_DELIMITER, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.CSV, - BaseSinkConfig.TXT_COMPRESS) + BaseSinkConfig.TXT_COMPRESS, + BaseSinkConfig.ENABLE_HEADER_WRITE) .conditional( BaseSinkConfig.FILE_FORMAT_TYPE, FileFormat.JSON,