This is an automated email from the ASF dual-hosted git repository.

linxinyuan pushed a commit to branch xinyuan-loop-feb
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/xinyuan-loop-feb by this push:
     new bd5ac3aba6 update
bd5ac3aba6 is described below

commit bd5ac3aba6c1449bf7c4e62af64ad3b7bd3163c7
Author: Xinyuan Lin <[email protected]>
AuthorDate: Tue Feb 10 18:45:46 2026 -0800

    update
---
 .../texera/amber/operator/loop/LoopEndOpExec.scala    | 19 +++++++++++++++++++
 .../texera/amber/operator/loop/LoopStartOpExec.scala  | 18 +-----------------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopEndOpExec.scala
 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopEndOpExec.scala
index 60f18cd5fc..9083c1e77a 100644
--- 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopEndOpExec.scala
+++ 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopEndOpExec.scala
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package org.apache.texera.amber.operator.loop
 
 import org.apache.texera.amber.core.executor.OperatorExecutor
diff --git 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopStartOpExec.scala
 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopStartOpExec.scala
index 1ff10c650c..f15d90a6cc 100644
--- 
a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopStartOpExec.scala
+++ 
b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/loop/LoopStartOpExec.scala
@@ -18,27 +18,11 @@
  */
 
 package org.apache.texera.amber.operator.loop
-
 import org.apache.texera.amber.core.executor.OperatorExecutor
 import org.apache.texera.amber.core.tuple.{Tuple, TupleLike}
-import org.apache.texera.amber.util.JSONUtils.objectMapper
-
-import scala.collection.mutable
 
 class LoopStartOpExec(descString: String) extends OperatorExecutor {
-  private val data = new mutable.ArrayBuffer[Tuple]
-  private var currentIteration = 0
-
-  override def processTuple(tuple: Tuple, port: Int): Iterator[TupleLike] = {
-    data.append(tuple)
-    Iterator.empty
-  }
-
-  override def onFinish(port: Int): Iterator[TupleLike] = {
-    currentIteration += 1
-    data.iterator
-  }
-
+  override def processTuple(tuple: Tuple, port: Int): Iterator[TupleLike] = 
Iterator(tuple)
 }
 
 

Reply via email to