Skip to content

Commit

Permalink
[hotfix-#1842][core] Fixed the config of sftp is null and support wri…
Browse files Browse the repository at this point in the history
…te mode
  • Loading branch information
libailin authored and lihongwei committed Nov 21, 2023
1 parent 9be5ac8 commit e596e42
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ private static FtpConfig getFtpConfByOptions(ReadableConfig config) {
ftpConfig.setCompressType(config.get(FtpOptions.COMPRESS_TYPE));
ftpConfig.setFileType(config.get(FtpOptions.FILE_TYPE));
ftpConfig.setNextCheckRows(config.get(BaseFileOptions.NEXT_CHECK_ROWS));
ftpConfig.setWriteMode(config.get(BaseFileOptions.WRITE_MODE));

if (!ConfigConstants.DEFAULT_FIELD_DELIMITER.equals(
config.get(FtpOptions.FIELD_DELIMITER))) {
Expand Down Expand Up @@ -181,6 +182,7 @@ public Set<ConfigOption<?>> optionalOptions() {
options.add(FtpOptions.FIELD_DELIMITER);
options.add(FtpOptions.COMPRESS_TYPE);
options.add(BaseFileOptions.NEXT_CHECK_ROWS);
options.add(BaseFileOptions.WRITE_MODE);
return options;
}
}

0 comments on commit e596e42

Please sign in to comment.