choubenson commented on code in PR #12709:
URL: https://github.com/apache/iotdb/pull/12709#discussion_r1642862368


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.java:
##########
@@ -1294,8 +1295,11 @@ public SettableFuture<ConfigTaskResult> 
showTTL(ShowTTLStatement showTTLStatemen
     Map<String, Long> databaseToTTL = new TreeMap<>();
     try (ConfigNodeClient client =
         
CONFIG_NODE_CLIENT_MANAGER.borrowClient(ConfigNodeInfo.CONFIG_REGION_ID)) {
-      TShowTTLResp resp = client.showAllTTL();
-      databaseToTTL.putAll(resp.getPathTTLMap());
+      for (PartialPath pathPattern : showTTLStatement.getPaths()) {
+        TShowTTLReq req = new 
TShowTTLReq(Arrays.asList(pathPattern.getNodes()));
+        TShowTTLResp resp = client.showTTL(req);
+        databaseToTTL.putAll(resp.getPathTTLMap());

Review Comment:
   Resolved. TODO has been added.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to