You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "VuMartin (via GitHub)" <gi...@apache.org> on 2026/08/30 08:00:07 UTC

[PR] Fix LoopStart state variable collision [texera]

VuMartin opened a new pull request, #8126:
URL: https://github.com/apache/texera/pull/8126

   ### What changes were proposed in this PR?
   
   Fixes LoopStart state variables being silently overwritten by upstream state. LoopStart now detects collisions between existing loop variables and incoming state variables and raises an error instead of overwriting the loop variable.
   
   Before:
   <img width="913" height="629" alt="Screenshot 2026-08-27 at 6 39 29 PM" src="https://github.com/user-attachments/assets/6278d045-638d-49a4-8f66-c05be740d556" />
   
   <img width="772" height="247" alt="Screenshot 2026-08-28 at 12 14 43 AM" src="https://github.com/user-attachments/assets/525aa90c-c864-45e6-9e84-049c7a58cc5c" />
   
   After:
   <img width="923" height="469" alt="Screenshot 2026-08-28 at 12 03 05 AM" src="https://github.com/user-attachments/assets/1e9db3d1-8aac-45b5-9bbe-4c1b55e97cd4" />
   
   <img width="1085" height="498" alt="Screenshot 2026-08-28 at 12 07 52 AM" src="https://github.com/user-attachments/assets/c1ab5670-b6fe-4f8c-aebb-21318c57128e" />
   
   ### Any related issues, documentation, discussions?
   
   Fixes #7248
   
   ### How was this PR tested?
   
   Added a unit test verifying that LoopStart rejects incoming state that attempts to overwrite an existing loop state variable.
   
   Ran the targeted pytest test successfully: 1 passed.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: ChatGPT (5.5 mini)


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: prevent LoopStart state variable collision [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-6116312009

   This pull request has been automatically marked as **stale** because it has
   not had any activity for 30 days. It will be closed in **7 days** if no
   further activity occurs.
   
   If this PR is still relevant, please:
   - Push new commits or rebase onto the latest `main`, or
   - Comment with a status update, or
   - Address any open review feedback.
   
   To exempt this PR from auto-close, a maintainer can add the `pinned` label.
   Thank you for your contribution to Apache Texera (incubating)!


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: prevent LoopStart state variable collision [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5467550617

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 0 better · 🔴 7 worse · ⚪ 8 noise (<±5%) · 0 without baseline
   
   > Compared against main `98588bf` benchmarked on **this same runner**, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.
   
   [Dashboard](https://apache.github.io/texera/dev/bench/) · [Run](https://github.com/apache/texera/actions/runs/33300575699)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🔴 | bs=10 sw=10 sl=64 | 362 | 0.221 | 24,229/81,703/81,703 us | 🔴 +131.0% / 🔴 +453.4% |
   | 🔴 | bs=100 sw=10 sl=64 | 805 | 0.491 | 121,521/163,467/163,467 us | 🔴 +5.5% / 🔴 +61.9% |
   | ⚪ | bs=1000 sw=10 sl=64 | 937 | 0.572 | 1,067,864/1,132,900/1,132,900 us | ⚪ within ±5% / 🔴 +16.3% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `98588bf` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 362 tuples/sec | 433 tuples/sec | 842.25 tuples/sec | -16.4% | -57.0% |
   | bs=10 sw=10 sl=64 | MB/s | 0.221 MB/s | 0.264 MB/s | 0.514 MB/s | -16.3% | -57.0% |
   | bs=10 sw=10 sl=64 | p50 | 24,229 us | 22,675 us | 11,860 us | +6.9% | +104.3% |
   | bs=10 sw=10 sl=64 | p95 | 81,703 us | 35,372 us | 14,764 us | +131.0% | +453.4% |
   | bs=10 sw=10 sl=64 | p99 | 81,703 us | 35,372 us | 17,870 us | +131.0% | +357.2% |
   | bs=100 sw=10 sl=64 | throughput | 805 tuples/sec | 817 tuples/sec | 1,084 tuples/sec | -1.5% | -25.7% |
   | bs=100 sw=10 sl=64 | MB/s | 0.491 MB/s | 0.499 MB/s | 0.662 MB/s | -1.6% | -25.8% |
   | bs=100 sw=10 sl=64 | p50 | 121,521 us | 123,676 us | 94,616 us | -1.7% | +28.4% |
   | bs=100 sw=10 sl=64 | p95 | 163,467 us | 154,883 us | 100,981 us | +5.5% | +61.9% |
   | bs=100 sw=10 sl=64 | p99 | 163,467 us | 154,883 us | 108,141 us | +5.5% | +51.2% |
   | bs=1000 sw=10 sl=64 | throughput | 937 tuples/sec | 927 tuples/sec | 1,112 tuples/sec | +1.1% | -15.7% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.572 MB/s | 0.566 MB/s | 0.679 MB/s | +1.1% | -15.7% |
   | bs=1000 sw=10 sl=64 | p50 | 1,067,864 us | 1,076,300 us | 930,623 us | -0.8% | +14.7% |
   | bs=1000 sw=10 sl=64 | p95 | 1,132,900 us | 1,151,928 us | 974,308 us | -1.7% | +16.3% |
   | bs=1000 sw=10 sl=64 | p99 | 1,132,900 us | 1,151,928 us | 1,002,806 us | -1.7% | +13.0% |
   
   </details>
   
   <details><summary>Raw CSV</summary>
   
   ```csv
   config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
   0,10,10,64,20,552.11,200,128000,362,0.221,24229.06,81703.07,81703.07
   1,100,10,64,20,2484.76,2000,1280000,805,0.491,121520.85,163466.69,163466.69
   2,1000,10,64,20,21347.82,20000,12800000,937,0.572,1067863.81,1132900.05,1132900.05
   ```
   
   </details>
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: prevent LoopStart state variable collision [texera]

Posted by "VuMartin (via GitHub)" <gi...@apache.org>.
VuMartin commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5558078623

   Thanks for the review! Updated the PR description to clarify the external state behavior and the back-edge state replacement behavior. Also simplified the stamped LoopStart state routing.


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: prevent LoopStart state variable collision [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5467523466

   <!-- backport-auto-label-report -->
   ### Backport auto-label report
   
   This `fix:` PR was checked against each actively-supported release branch. `release/*` labels drive the post-merge backport, so add or remove one to change where this fix lands.
   
   | Release branch | Analysis |
   | --- | --- |
   | ⚠️ `release/v1.3` | Not labeled automatically — none of the files this PR modifies exist on this branch (`amber/src/main/python/core/models/operator.py`, `amber/src/test/python/core/models/test_operator.py`). The fix may target code that isn't on this release, or the files were moved/renamed after the branch was cut. **Please check and add `release/v1.3` by hand if this fix should be backported here.** |
   | ✅ `release/v1.2` | Change detected on this branch — label added; this fix is queued to backport here. Requested review from @xuang7. |
   
   _[Auto-label run](https://github.com/apache/texera/actions/runs/33300567370)._


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: prevent LoopStart state variable collision [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5467668465

   ### :x: 5 Tests Failed:
   | Tests completed | Failed | Passed | Skipped |
   |---|---|---|---|
   | 46 | 5 | 41 | 0 |
   <details><summary>View the top 3 failed test(s) by shortest run time</summary>
   
   > <pre><code class="language-python">org.apache.texera.amber.engine.e2e.LoopIntegrationSpec::Engine should run a nested loop for exactly 4 inner iterations (2 outer x 2 inner)</code></pre>
   > <details><summary>Stack Traces | 180s run time</summary>
   > 
   > > <pre><code class="language-python">com.twitter.util.TimeoutException: 1.minutes+30.seconds
   > >       at com.twitter.util.Promise.ready(Promise.scala:680)
   > >       at com.twitter.util.Promise.result(Promise.scala:689)
   > >       at com.twitter.util.Await$.$anonfun$result$1(Awaitable.scala:155)
   > >       at com.twitter.concurrent.LocalScheduler$Activation.blocking(Scheduler.scala:189)
   > >       at com.twitter.concurrent.LocalScheduler.blocking(Scheduler.scala:256)
   > >       at com.twitter.concurrent.Scheduler$.blocking(Scheduler.scala:85)
   > >       at com.twitter.util.Await$.result(Awaitable.scala:155)
   > >       at org.apache.texera.amber.engine.e2e.TestUtils$.runWorkflowAndReadResults(TestUtils.scala:187)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runAndGetMaterializedRowCounts(LoopIntegrationSpec.scala:156)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$new$3(LoopIntegrationSpec.scala:267)
   > >       at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
   > >       at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
   > >       at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:22)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:20)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
   > >       at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
   > >       at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.super$withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$withFixture$1(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:343)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:342)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:203)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:203)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
   > >       at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
   > >       at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTests(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Suite.run(Suite.scala:1114)
   > >       at org.scalatest.Suite.run$(Suite.scala:1096)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterAll$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
   > >       at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
   > >       at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
   > >       at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
   > >       at sbt.TestRunner.runTest$1(TestFramework.scala:153)
   > >       at sbt.TestRunner.run(TestFramework.scala:168)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
   > >       at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFunction.apply(TestFramework.scala:348)
   > >       at sbt.Tests$.$anonfun$toTask$1(Tests.scala:436)
   > >       at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
   > >       at sbt.std.Transform$$anon$4.work(Transform.scala:69)
   > >       at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
   > >       at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
   > >       at sbt.Execute.work(Execute.scala:292)
   > >       at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
   > >       at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
   > >       at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   > >       at java.base/java.lang.Thread.run(Thread.java:840)</code></pre>
   > 
   > </details>
   
   
   > <pre><code class="language-python">org.apache.texera.amber.engine.e2e.LoopIntegrationSpec::Engine should run a loop whose body operator emits its own boundary state</code></pre>
   > <details><summary>Stack Traces | 180s run time</summary>
   > 
   > > <pre><code class="language-python">com.twitter.util.TimeoutException: 1.minutes+30.seconds
   > >       at com.twitter.util.Promise.ready(Promise.scala:680)
   > >       at com.twitter.util.Promise.result(Promise.scala:689)
   > >       at com.twitter.util.Await$.$anonfun$result$1(Awaitable.scala:155)
   > >       at com.twitter.concurrent.LocalScheduler$Activation.blocking(Scheduler.scala:189)
   > >       at com.twitter.concurrent.LocalScheduler.blocking(Scheduler.scala:256)
   > >       at com.twitter.concurrent.Scheduler$.blocking(Scheduler.scala:85)
   > >       at com.twitter.util.Await$.result(Awaitable.scala:155)
   > >       at org.apache.texera.amber.engine.e2e.TestUtils$.runWorkflowAndReadResults(TestUtils.scala:187)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runAndGetMaterializedRowCounts(LoopIntegrationSpec.scala:156)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$new$11(LoopIntegrationSpec.scala:386)
   > >       at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
   > >       at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
   > >       at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:22)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:20)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
   > >       at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
   > >       at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.super$withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$withFixture$1(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:343)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:342)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:203)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:203)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
   > >       at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
   > >       at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTests(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Suite.run(Suite.scala:1114)
   > >       at org.scalatest.Suite.run$(Suite.scala:1096)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterAll$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
   > >       at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
   > >       at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
   > >       at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
   > >       at sbt.TestRunner.runTest$1(TestFramework.scala:153)
   > >       at sbt.TestRunner.run(TestFramework.scala:168)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
   > >       at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFunction.apply(TestFramework.scala:348)
   > >       at sbt.Tests$.$anonfun$toTask$1(Tests.scala:436)
   > >       at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
   > >       at sbt.std.Transform$$anon$4.work(Transform.scala:69)
   > >       at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
   > >       at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
   > >       at sbt.Execute.work(Execute.scala:292)
   > >       at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
   > >       at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
   > >       at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   > >       at java.base/java.lang.Thread.run(Thread.java:840)</code></pre>
   > 
   > </details>
   
   
   > <pre><code class="language-python">org.apache.texera.amber.engine.e2e.LoopIntegrationSpec::Engine should run a nested loop whose inner body chains multiple JVM operators</code></pre>
   > <details><summary>Stack Traces | 180s run time</summary>
   > 
   > > <pre><code class="language-python">com.twitter.util.TimeoutException: 1.minutes+30.seconds
   > >       at com.twitter.util.Promise.ready(Promise.scala:680)
   > >       at com.twitter.util.Promise.result(Promise.scala:689)
   > >       at com.twitter.util.Await$.$anonfun$result$1(Awaitable.scala:155)
   > >       at com.twitter.concurrent.LocalScheduler$Activation.blocking(Scheduler.scala:189)
   > >       at com.twitter.concurrent.LocalScheduler.blocking(Scheduler.scala:256)
   > >       at com.twitter.concurrent.Scheduler$.blocking(Scheduler.scala:85)
   > >       at com.twitter.util.Await$.result(Awaitable.scala:155)
   > >       at org.apache.texera.amber.engine.e2e.TestUtils$.runWorkflowAndReadResults(TestUtils.scala:187)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runAndGetMaterializedRowCounts(LoopIntegrationSpec.scala:156)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$new$8(LoopIntegrationSpec.scala:345)
   > >       at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
   > >       at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
   > >       at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:22)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:20)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
   > >       at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
   > >       at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.super$withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$withFixture$1(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:343)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:342)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:203)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:203)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
   > >       at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
   > >       at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTests(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Suite.run(Suite.scala:1114)
   > >       at org.scalatest.Suite.run$(Suite.scala:1096)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterAll$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
   > >       at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
   > >       at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
   > >       at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
   > >       at sbt.TestRunner.runTest$1(TestFramework.scala:153)
   > >       at sbt.TestRunner.run(TestFramework.scala:168)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
   > >       at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFunction.apply(TestFramework.scala:348)
   > >       at sbt.Tests$.$anonfun$toTask$1(Tests.scala:436)
   > >       at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
   > >       at sbt.std.Transform$$anon$4.work(Transform.scala:69)
   > >       at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
   > >       at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
   > >       at sbt.Execute.work(Execute.scala:292)
   > >       at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
   > >       at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
   > >       at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   > >       at java.base/java.lang.Thread.run(Thread.java:840)</code></pre>
   > 
   > </details>
   
   
   > <pre><code class="language-python">org.apache.texera.amber.engine.e2e.LoopIntegrationSpec::Engine should run a loop whose body contains a JVM (Scala) operator</code></pre>
   > <details><summary>Stack Traces | 180s run time</summary>
   > 
   > > <pre><code class="language-python">com.twitter.util.TimeoutException: 1.minutes+30.seconds
   > >       at com.twitter.util.Promise.ready(Promise.scala:680)
   > >       at com.twitter.util.Promise.result(Promise.scala:689)
   > >       at com.twitter.util.Await$.$anonfun$result$1(Awaitable.scala:155)
   > >       at com.twitter.concurrent.LocalScheduler$Activation.blocking(Scheduler.scala:189)
   > >       at com.twitter.concurrent.LocalScheduler.blocking(Scheduler.scala:256)
   > >       at com.twitter.concurrent.Scheduler$.blocking(Scheduler.scala:85)
   > >       at com.twitter.util.Await$.result(Awaitable.scala:155)
   > >       at org.apache.texera.amber.engine.e2e.TestUtils$.runWorkflowAndReadResults(TestUtils.scala:187)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runAndGetMaterializedRowCounts(LoopIntegrationSpec.scala:156)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$new$6(LoopIntegrationSpec.scala:310)
   > >       at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
   > >       at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
   > >       at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:22)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:20)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
   > >       at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
   > >       at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.super$withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$withFixture$1(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:343)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:342)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:203)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:203)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
   > >       at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
   > >       at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTests(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Suite.run(Suite.scala:1114)
   > >       at org.scalatest.Suite.run$(Suite.scala:1096)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterAll$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
   > >       at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
   > >       at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
   > >       at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
   > >       at sbt.TestRunner.runTest$1(TestFramework.scala:153)
   > >       at sbt.TestRunner.run(TestFramework.scala:168)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
   > >       at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFunction.apply(TestFramework.scala:348)
   > >       at sbt.Tests$.$anonfun$toTask$1(Tests.scala:436)
   > >       at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
   > >       at sbt.std.Transform$$anon$4.work(Transform.scala:69)
   > >       at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
   > >       at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
   > >       at sbt.Execute.work(Execute.scala:292)
   > >       at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
   > >       at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
   > >       at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   > >       at java.base/java.lang.Thread.run(Thread.java:840)</code></pre>
   > 
   > </details>
   
   
   > <pre><code class="language-python">org.apache.texera.amber.engine.e2e.LoopIntegrationSpec::Engine should run a single TextInput -&gt; LoopStart -&gt; LoopEnd loop for exactly 3 iterations</code></pre>
   > <details><summary>Stack Traces | 182s run time</summary>
   > 
   > > <pre><code class="language-python">com.twitter.util.TimeoutException: 1.minutes+30.seconds
   > >       at com.twitter.util.Promise.ready(Promise.scala:680)
   > >       at com.twitter.util.Promise.result(Promise.scala:689)
   > >       at com.twitter.util.Await$.$anonfun$result$1(Awaitable.scala:155)
   > >       at com.twitter.concurrent.LocalScheduler$Activation.blocking(Scheduler.scala:189)
   > >       at com.twitter.concurrent.LocalScheduler.blocking(Scheduler.scala:256)
   > >       at com.twitter.concurrent.Scheduler$.blocking(Scheduler.scala:85)
   > >       at com.twitter.util.Await$.result(Awaitable.scala:155)
   > >       at org.apache.texera.amber.engine.e2e.TestUtils$.runWorkflowAndReadResults(TestUtils.scala:187)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runAndGetMaterializedRowCounts(LoopIntegrationSpec.scala:156)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$new$1(LoopIntegrationSpec.scala:231)
   > >       at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
   > >       at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
   > >       at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:22)
   > >       at org.scalatest.Transformer.apply(Transformer.scala:20)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1832)
   > >       at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
   > >       at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.super$withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.$anonfun$withFixture$1(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:343)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:342)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Retries.withRetry(Retries.scala:203)
   > >       at org.scalatest.Retries.withRetry$(Retries.scala:203)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withRetry(LoopIntegrationSpec.scala:92)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.withFixture(LoopIntegrationSpec.scala:101)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1830)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1842)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1824)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterEach$$super$runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
   > >       at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTest(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
   > >       at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
   > >       at scala.collection.immutable.List.foreach(List.scala:323)
   > >       at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
   > >       at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
   > >       at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1900)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1899)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.runTests(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.Suite.run(Suite.scala:1114)
   > >       at org.scalatest.Suite.run$(Suite.scala:1096)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1945)
   > >       at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1943)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.org$scalatest$BeforeAndAfterAll$$super$run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
   > >       at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
   > >       at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
   > >       at org.apache.texera.amber.engine.e2e.LoopIntegrationSpec.run(LoopIntegrationSpec.scala:92)
   > >       at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
   > >       at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
   > >       at sbt.TestRunner.runTest$1(TestFramework.scala:153)
   > >       at sbt.TestRunner.run(TestFramework.scala:168)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
   > >       at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
   > >       at sbt.TestFunction.apply(TestFramework.scala:348)
   > >       at sbt.Tests$.$anonfun$toTask$1(Tests.scala:436)
   > >       at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
   > >       at sbt.std.Transform$$anon$4.work(Transform.scala:69)
   > >       at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
   > >       at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
   > >       at sbt.Execute.work(Execute.scala:292)
   > >       at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
   > >       at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
   > >       at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
   > >       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   > >       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   > >       at java.base/java.lang.Thread.run(Thread.java:840)</code></pre>
   > 
   > </details>
   
   </details>
   
   To view more test analytics, go to the [Test Analytics Dashboard](https://app.codecov.io/gh/apache/texera/tests/VuMartin%2Ftexera%3Afix%2F7248-loop-state-variable-collision)
   <sub>📋 Got 3 mins? [Take this short survey](https://forms.gle/22i53Qa1CySZjA6c7) to help us improve Test Analytics.</sub>


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: prevent LoopStart state variable collision [texera]

Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5556678077

   @aglinxinyuan Do you want to chime in?


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: prevent LoopStart state variable collision [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #8126:
URL: https://github.com/apache/texera/pull/8126#discussion_r3942886408


##########
amber/src/main/python/core/models/operator.py:
##########
@@ -366,12 +366,16 @@ class LoopStartOperator(TableOperator):
 
     @overrides.final
     def process_state(self, state: State, port: int) -> Optional[State]:
-        # First-entry only: merge upstream state into self.state. The nested
-        # pass-through (a frame already stamped with a LoopStartId) and all
-        # loop_counter bookkeeping are owned by the worker runtime
-        # (main_loop._process_state_frame), so this operator never sees the
-        # counter and never mutates the State it is handed.
-        self.state.update(state)
+        # First-entry only: merge non-conflicting upstream state into self.state.
+        # The nested pass-through (a frame already stamped with a LoopStartId) and
+        # all loop_counter bookkeeping are owned by the worker runtime
+        # (main_loop._process_state_frame), so this operator never sees the counter
+        # and never mutates the State it is handed.
+        for key, value in state.items():
+            if key in self.state:
+                raise ValueError(f"Loop state variable cannot be overwritten: '{key}'")

Review Comment:
   With the back-edge stamped, this only sees outside state — nice. One note for the PR body: outside state can still *add* new loop variables, just not overwrite them.



##########
amber/src/main/python/core/runnables/main_loop.py:
##########
@@ -216,7 +216,7 @@ def _jump_to_loop_start(
         writer = DocumentFactory.create_document(uri, State.SCHEMA).writer("0")
         # The back-edge fires only after the matching LoopEnd consumed at
         # loop_counter == 0, so the next iteration's input starts at depth 0.
-        writer.put_one(executor.state.to_tuple(0))
+        writer.put_one(executor.state.to_tuple(0, self._loop_start_id))

Review Comment:
   Stamping the back-edge is the key move — it's what makes the rest safe. LGTM.



##########
amber/src/main/python/core/runnables/main_loop.py:
##########
@@ -515,31 +515,40 @@ def _process_state_frame(self, frame: StateFrame) -> None:
             self._emit_and_save_state(state, in_counter - 1, frame.loop_start_id)
             self._check_and_process_control()
             return
-        if isinstance(executor, LoopStartOperator) and frame.loop_start_id:
-            # Outer loop's state flowing through an inner LoopStart -- detected
-            # by the outer LoopStart's id stamped on the envelope (a first-entry
-            # state has no stamp): step one level deeper and forward, keeping
-            # the outer loop's id.
-            self._emit_and_save_state(state, in_counter + 1, frame.loop_start_id)
+        if (
+            isinstance(executor, LoopStartOperator)
+            and frame.loop_start_id
+            and frame.loop_start_id != get_logical_op_id(self.context.worker_id)
+        ):
+            # State belongs to an outer loop flowing through this inner LoopStart.
+            # Forward it one level deeper while preserving the outer loop's id.
+            self._emit_and_save_state(
+                state,
+                in_counter + 1,
+                frame.loop_start_id,
+            )
+            self._check_and_process_control()
+            return
+
+        if (
+            isinstance(executor, LoopStartOperator)
+            and frame.loop_start_id
+            and frame.loop_start_id == get_logical_op_id(self.context.worker_id)
+        ):
+            # This is this LoopStart's own back-edge state. Restore the loop
+            # variables directly instead of routing the state through
+            # process_state(), which is reserved for external/first-entry state.
+            executor.state = state

Review Comment:
   This replaces the state instead of merging it, so a variable deleted in `update` stays deleted next iteration. I think that's better than before — just mention it in the PR body. Optional: merge the two stamped branches into one `if/else`.



-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: prevent LoopStart state variable collision [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5556807427

   It's not a fix. It's a change to the original behavior.


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix LoopStart state variable collision [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-5467517639

   <!-- texera-reviewer-suggestion -->
   ### Automated Reviewer Suggestions
   
   Based on the `git blame` history of the changed files, we recommend the following reviewers:
   
   - **Contributors with relevant context:** `@eugenegujing`, `@aglinxinyuan`
     You can notify them by mentioning `@eugenegujing`, `@aglinxinyuan` in a comment.
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: prevent LoopStart state variable collision [texera]

Posted by "github-actions[bot] (via GitHub) via notifications" <no...@texera.apache.org>.
github-actions[bot] commented on PR #8126:
URL: https://github.com/apache/texera/pull/8126#issuecomment-7088975636

   This pull request has been automatically marked as **stale** because it has
   not had any activity for 30 days. It will be closed in **7 days** if no
   further activity occurs.
   
   If this PR is still relevant, please:
   - Push new commits or rebase onto the latest `main`, or
   - Comment with a status update, or
   - Address any open review feedback.
   
   To exempt this PR from auto-close, a maintainer can add the `pinned` label.
   Thank you for your contribution to Apache Texera (incubating)!


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org