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

   ### What changes were proposed in this PR?
   
   An inner Loop End saved its counter by replacing its producer’s state table. 
On the second inner iteration, a Filter referring to the outer `$k` then failed 
to bind it. This change writes the inner variables to a separate checkpoint 
before requesting a jump. The producer’s messages remain available in their 
original order.
   
   When Loop End requests another iteration, the coordinator marks it and its 
matching Loop Start. This lets Loop Start restore its own variables and Loop 
End keep earlier results. Starting the inner loop again from the outer loop 
gets a fresh counter and fresh output.
   
   ### Any related issues, documentation, discussions?
   
   Related to #9409. This fixes reads by inner **body operators** across 
iterations. Reading enclosing names in boundary expressions and isolating inner 
writes to those names remain open.
   
   ### How was this PR tested?
   
   On `main` at `cc1f201596`, the new workflow failed on its second inner 
iteration with “no state message carried it”. With this change, the outer 
result is `[1, 1, 2, 2]` and the last inner result is `[2, 2]`. The Iceberg 
regression also checks that two successive jumps preserve the producer’s 
updates in both orders.
   
   From the repository root:
   
   ```sh
   sbt "WorkflowExecutionService/testOnly *LoopIntegrationSpec -- -z enclosing"
   ```
   
   From `amber/` (224 tests passed):
   
   ```sh
   python -m pytest -q --tb=short --timeout=30 \
     src/test/python/core/runnables/test_main_loop.py \
     
src/test/python/core/architecture/packaging/test_state_materialization_e2e.py \
     src/test/python/core/architecture/packaging/test_output_manager.py \
     src/test/python/core/models/test_loop_operators.py \
     src/test/python/core/storage/test_vfs_uri_factory.py \
     
src/test/python/core/architecture/handlers/control/test_initialize_executor_handler.py
 \
     src/test/python/core/runnables/test_network_receiver.py \
     src/test/python/core/runnables/test_network_sender.py \
     src/test/python/core/models/test_state.py \
     src/test/python/core/runnables/test_data_processor.py \
     
src/test/python/core/storage/runnables/test_input_port_materialization_reader_runnable.py
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-6)
   


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