Skip to content

Commit 80919ee

Browse files
committed
update
1 parent c13dde1 commit 80919ee

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/DataNodeInternalRPCServiceImpl.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,12 +942,21 @@ public TAliasTimeSeriesResp lockAndGetSchemaInfoForAlias(
942942
timeSeriesInfo.setMeasurementAlias(schemaInfo.getAlias());
943943
}
944944

945-
// Set props (from schema)
945+
// Set props (from schema), excluding internal alias-related keys
946946
if (schema instanceof org.apache.tsfile.write.schema.MeasurementSchema) {
947947
Map<String, String> props =
948948
((org.apache.tsfile.write.schema.MeasurementSchema) schema).getProps();
949949
if (props != null && !props.isEmpty()) {
950-
timeSeriesInfo.setProps(props);
950+
// Remove internal alias-related keys if they exist
951+
Map<String, String> propsCopy = new HashMap<>(props);
952+
propsCopy.remove(MeasurementInfo.IS_RENAMED_KEY);
953+
propsCopy.remove(MeasurementInfo.IS_RENAMING_KEY);
954+
propsCopy.remove(MeasurementInfo.DISABLED_KEY);
955+
propsCopy.remove(MeasurementInfo.ORIGINAL_PATH_KEY);
956+
propsCopy.remove(MeasurementInfo.ALIAS_PATH_KEY);
957+
if (!propsCopy.isEmpty()) {
958+
timeSeriesInfo.setProps(propsCopy);
959+
}
951960
}
952961
}
953962

0 commit comments

Comments
 (0)