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 (apache#3854)

Co-authored-by: zhaoliang01 <[email protected]>
  • Loading branch information
2 people authored and harveyyue committed Feb 7, 2023
1 parent 1a81d4f commit ad3fdf7
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 ad3fdf7

Please sign in to comment.