Sh-Zh-7 commented on code in PR #16953:
URL: https://github.com/apache/iotdb/pull/16953#discussion_r2709468940


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/optimizations/UnaliasSymbolReferences.java:
##########
@@ -619,6 +621,28 @@ public PlanAndMappings visitWindowFunction(WindowNode 
node, UnaliasContext conte
       return new PlanAndMappings(rewrittenWindow, mapping);
     }
 
+    @Override
+    public PlanAndMappings visitRowNumber(RowNumberNode node, UnaliasContext 
context) {
+      PlanAndMappings rewrittenSource = node.getChild().accept(this, context);
+      Map<Symbol, Symbol> mapping = new 
HashMap<>(rewrittenSource.getMappings());
+      SymbolMapper mapper = symbolMapper(mapping);
+
+      RowNumberNode rewrittenRowNumber = mapper.map(node, 
rewrittenSource.getRoot());
+
+      return new PlanAndMappings(rewrittenRowNumber, mapping);
+    }
+
+    @Override
+    public PlanAndMappings visitTopKRanking(TopKRankingNode node, 
UnaliasContext context) {
+      PlanAndMappings rewrittenSource = node.getChild().accept(this, context);
+      Map<Symbol, Symbol> mapping = new 
HashMap<>(rewrittenSource.getMappings());
+      SymbolMapper mapper = symbolMapper(mapping);
+
+      TopKRankingNode rewrittenTopNRanking = mapper.map(node, 
rewrittenSource.getRoot());

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