AMashenkov commented on code in PR #4660:
URL: https://github.com/apache/ignite-3/pull/4660#discussion_r1824049593


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/fsm/Transition.java:
##########
@@ -0,0 +1,23 @@
+package org.apache.ignite.internal.sql.engine.exec.fsm;
+
+import java.util.function.Function;
+
+class Transition {
+    private final ExecutionPhase from;
+    private final Function<Query, ExecutionPhase> to;
+
+     Transition(ExecutionPhase from, Function<Query, ExecutionPhase> to) {
+        this.from = from;
+        this.to = to;
+    }
+
+    ExecutionPhase from() {
+         return from; 
+    }
+
+    void move(Query query) {
+         ExecutionPhase newPhase = to.apply(query);

Review Comment:
   assert query.currentPhase() == from;



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