shizy818 commented on code in PR #17591:
URL: https://github.com/apache/iotdb/pull/17591#discussion_r3300714505


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/utils/ResourceByPathUtils.java:
##########
@@ -419,6 +471,25 @@ public ReadOnlyMemChunk getReadOnlyMemChunkFromMemTable(
         context, columnIndexList, getMeasurementSchema(), 
alignedTvListQueryMap, deletionList);
   }
 
+  /**
+   * This method is called from prepareTvListMapForQuery with 
tvList.lockQueryList() held, ensuring
+   * thread-safe access to queryContextSet.
+   *
+   * @param tvList the TVList to get accessed columns for
+   * @return set of accessed column indices, or empty set if no columns are 
tracked
+   */
+  @Override
+  protected Set<Integer> getAccessedColumnsForQuery(TVList tvList) {
+    Set<Integer> accessedColumns = new HashSet<>();
+    for (QueryContext queryContext : tvList.getQueryContextSet()) {
+      if (queryContext instanceof FragmentInstanceContext) {

Review Comment:
   Done



-- 
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