Skip to content

Commit

Permalink
[Feature][Connector-V2][File] Allow the user to set the row delimiter…
Browse files Browse the repository at this point in the history
… as an empty string (#3854)

Co-authored-by: zhaoliang01 <[email protected]>
  • Loading branch information
lightzhao and zhaoliang01 authored Jan 16, 2023
1 parent df89459 commit 84508fc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public BaseFileSinkConfig(@NonNull Config config) {
this.fieldDelimiter = config.getString(BaseSinkConfig.FIELD_DELIMITER.key());
}

if (config.hasPath(BaseSinkConfig.ROW_DELIMITER.key()) &&
StringUtils.isNotEmpty(config.getString(BaseSinkConfig.ROW_DELIMITER.key()))) {
if (config.hasPath(BaseSinkConfig.ROW_DELIMITER.key())) {
this.rowDelimiter = config.getString(BaseSinkConfig.ROW_DELIMITER.key());
}

Expand Down

0 comments on commit 84508fc

Please sign in to comment.