This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new c725bfdd remove trim from ColumnSchemaBuilder (#375)
c725bfdd is described below
commit c725bfdd499d885e4e58af06794aa6e844e9cfb2
Author: shuwenwei <[email protected]>
AuthorDate: Thu Jan 9 16:00:01 2025 +0800
remove trim from ColumnSchemaBuilder (#375)
---
.../java/org/apache/tsfile/file/metadata/ColumnSchemaBuilder.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/ColumnSchemaBuilder.java
b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/ColumnSchemaBuilder.java
index 26ab24a7..e9f217a7 100644
---
a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/ColumnSchemaBuilder.java
+++
b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/ColumnSchemaBuilder.java
@@ -37,10 +37,10 @@ public class ColumnSchemaBuilder {
@TsFileApi
public ColumnSchemaBuilder name(String columnName) {
- this.columnName = columnName == null ? null : columnName.trim();
- if (this.columnName == null || this.columnName.isEmpty()) {
+ if (columnName == null || columnName.isEmpty()) {
throw new IllegalArgumentException("Column name must be a non empty
string");
}
+ this.columnName = columnName;
return this;
}