vldpyatkov commented on code in PR #13563:
URL: https://github.com/apache/ignite/pull/13563#discussion_r3970958723


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/rel/RecursiveCteState.java:
##########
@@ -19,18 +19,32 @@
 
 import java.util.ArrayList;
 import java.util.Collections;
+import java.util.HashSet;
 import java.util.List;
+import java.util.Set;
 import 
org.apache.ignite.internal.processors.query.calcite.exec.ExecutionContext;
+import org.apache.ignite.internal.processors.query.calcite.exec.RowHandler;
+import 
org.apache.ignite.internal.processors.query.calcite.exec.exp.agg.GroupKey;
 import 
org.apache.ignite.internal.processors.query.calcite.exec.tracker.RowTracker;
 import org.apache.ignite.internal.util.GridUnsafe;
+import org.jetbrains.annotations.Nullable;
 
 /** Query-local current and next deltas of a recursive CTE. */
 public class RecursiveCteState<Row> {
+    /** Rows seen across all iterations, or null for UNION ALL. */
+    @Nullable private final Set<GroupKey<Row>> seen;
+
+    /** Row handler used for SQL grouping keys. */
+    private final RowHandler<Row> hnd;
+
+    /** Memory tracker for keys and their rows retained for duplicate 
elimination. */
+    @Nullable private final RowTracker<GroupKey<Row>> seenMemoryTracker;

Review Comment:
   The same as above.



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