Skip to content

Commit

Permalink
[hotfix][connector][file] Solved the bug of can not parse '\t' as del…
Browse files Browse the repository at this point in the history
…imiter from config file (#3083)
  • Loading branch information
TyrantLucifer authored Oct 13, 2022
1 parent 3b73cc7 commit bfde596
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public BaseTextFileConfig(@NonNull Config config) {
throw new RuntimeException("compress not support now");
}

if (config.hasPath(Constant.FIELD_DELIMITER) && !StringUtils.isBlank(config.getString(Constant.FIELD_DELIMITER))) {
if (config.hasPath(Constant.FIELD_DELIMITER) && StringUtils.isNotEmpty(config.getString(Constant.FIELD_DELIMITER))) {
this.fieldDelimiter = config.getString(Constant.FIELD_DELIMITER);
}

if (config.hasPath(Constant.ROW_DELIMITER) && !StringUtils.isBlank(config.getString(Constant.ROW_DELIMITER))) {
if (config.hasPath(Constant.ROW_DELIMITER) && StringUtils.isNotEmpty(config.getString(Constant.ROW_DELIMITER))) {
this.rowDelimiter = config.getString(Constant.ROW_DELIMITER);
}

Expand Down

0 comments on commit bfde596

Please sign in to comment.