This is an automated email from the ASF dual-hosted git repository.
luchunliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new b66102cfcb [INLONG-11606][Sort] When formatting string field values,
the original value is not modified (#11607)
b66102cfcb is described below
commit b66102cfcb9f7cfe38652e98954db3c22353df7a
Author: ChunLiang Lu <[email protected]>
AuthorDate: Tue Dec 17 15:04:48 2024 +0800
[INLONG-11606][Sort] When formatting string field values, the original
value is not modified (#11607)
---
.../inlong/common/pojo/sort/dataflow/field/format/StringFormatInfo.java | 2 +-
.../common/pojo/sort/dataflow/field/format/VarCharFormatInfo.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/StringFormatInfo.java
b/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/StringFormatInfo.java
index c249b33486..3a23ac594b 100644
---
a/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/StringFormatInfo.java
+++
b/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/StringFormatInfo.java
@@ -38,7 +38,7 @@ public class StringFormatInfo implements
BasicFormatInfo<String> {
@Override
public String deserialize(String text) {
- return text.trim();
+ return text;
}
@Override
diff --git
a/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/VarCharFormatInfo.java
b/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/VarCharFormatInfo.java
index ac5694bb9c..3b0ac25c67 100644
---
a/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/VarCharFormatInfo.java
+++
b/inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/VarCharFormatInfo.java
@@ -52,7 +52,7 @@ public class VarCharFormatInfo implements
BasicFormatInfo<String> {
@Override
public String deserialize(String text) {
- return text.trim();
+ return text;
}
@Override