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 ea778135 skip time column when generating TableSchema (#414)
ea778135 is described below
commit ea778135205e9e5f99c2f8f3e296233fc394f81a
Author: shuwenwei <[email protected]>
AuthorDate: Wed Apr 23 11:45:31 2025 +0800
skip time column when generating TableSchema (#414)
---
.../src/main/java/org/apache/tsfile/file/metadata/TableSchema.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/TableSchema.java
b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/TableSchema.java
index c64694d9..81964473 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/TableSchema.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/TableSchema.java
@@ -20,6 +20,7 @@
package org.apache.tsfile.file.metadata;
import org.apache.tsfile.annotations.TsFileApi;
+import org.apache.tsfile.common.constant.TsFileConstant;
import org.apache.tsfile.compatibility.DeserializeConfig;
import org.apache.tsfile.enums.ColumnCategory;
import org.apache.tsfile.enums.TSDataType;
@@ -227,6 +228,9 @@ public class TableSchema {
}
for (ChunkMetadata chunkMetadata :
chunkGroupMetadata.getChunkMetadataList()) {
+ if
(TsFileConstant.TIME_COLUMN_ID.equals(chunkMetadata.getMeasurementUid())) {
+ continue;
+ }
int columnIndex = findColumnIndex(chunkMetadata.getMeasurementUid());
// if the measurement is not found in the column list, add it
if (columnIndex == -1) {