choubenson commented on code in PR #12122: URL: https://github.com/apache/iotdb/pull/12122#discussion_r1577311884
########## iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/schema/source/DeviceSchemaSource.java: ########## @@ -98,6 +100,8 @@ public void transformToTsBlockColumns( .getColumnBuilder(0) .writeBinary(new Binary(device.getFullPath(), TSFileConfig.STRING_CHARSET)); int templateId = device.getTemplateId(); + long ttl = DataNodeTTLCache.getInstance().getTTL(device.getFullPath()); + String ttlStr = ttl == Long.MAX_VALUE ? IoTDBConstant.TTL_INFINITE : String.valueOf(ttl); Review Comment: Nice comment! The optimization can be implemented in a new pull request later. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org