Matthew-DWM opened a new pull request, #9620:
URL: https://github.com/apache/texera/pull/9620
### What changes were proposed in this PR?
The scala-csv iterator retries the read after EOF. Amber can poll it again
after closing the CSV (old) reader, which raises `Stream closed`. The legacy
scan now remembers normal EOF in the iterator created by each `open()`. Read
and parse exceptions still propagate.
```text
Before EOF -> close reader -> poll again -> Stream closed
After EOF -> close reader -> poll again -> false
```
### Any related issues, documentation, discussions?
Closes #9619
### How was this PR tested?
Four new regression cases failed with `Stream closed` on the unchanged
baseline. After the fix, all 160 selected scan tests passed, including checks
for reopening, limits, malformed CSV, and read errors. Scalafix and both
formatting checks passed.
The run used JDK 17, `UDF_PYTHON_PATH` pointing to the project’s Python 3.12
interpreter with pandas, and matching pre-generated jOOQ sources.
```sh
sbt -J-Xmx2g -J-Xms256m -J-Djava.io.tmpdir=/tmp -batch \
'set DAO / Compile / sourceGenerators := Seq.empty' \
'WorkflowOperator/scalafixAll --check' \
'WorkflowOperator/scalafmtCheck' \
'WorkflowOperator/Test/scalafmtCheck' \
'WorkflowOperator/testOnly *CSVOldScanSourceOpExecSpec
*CSVOldScanSourceOpDescSpec *ScanSourceOpDescSpec *CSVScanSourceOpDescSpec
*CSVScanSourceOpExecSpec *ParallelCSVScanSourceOpExecSpec
*JSONLScanSourceOpExecSpec'
```
A local Amber probe (`WorkflowExecutionService/testOnly
*CSVOldCompletionProbeSpec`) ran the three-row CSV (old) → Projection workflow
from the linked issue. Before the fix, the no-limit and limit `4` cases failed,
and the limit `3` control passed. After the fix, all three cases completed with
every expected row, value, column name, and type.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: OpenAI Codex (GPT-6.2 Sol)
--
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]