You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "eugenegujing (via GitHub)" <gi...@apache.org> on 2026/08/05 23:28:40 UTC
[I] File Scan emits zero rows when Offset is set and Limit is left empty [texera]
eugenegujing opened a new issue, #7345:
URL: https://github.com/apache/texera/issues/7345
### What happened?
`FileScanUtils.createTuplesFromFile` computes the end of its slice as `offset + limit.getOrElse(Int.MaxValue)`. When the user sets an Offset and leaves Limit empty, that addition overflows to a negative number and the operator emits **no rows at all**, silently and with no error, and the workflow reports success. Any Offset ≥ 1 with an empty Limit is affected.
**Expected:** Offset = 1 with an empty Limit reads from line 1 to the end of the file.
Both `FileScan` and `FileScanOp` are affected, since `FileScanSourceOpExec` and `FileScanOpExec` both delegate to this helper.
### How to reproduce?
1. Upload a five-line text file (`a`, `b`, `c`, `d`, `e` on separate lines) as a dataset.
2. Add a **File Scan** operator and point its **File** property at that file.
3. Leave Attribute Type at its default (`string`, i.e. one tuple per line).
4. Set **Offset (lines)** to `1`. Leave **Limit (lines)** empty.
5. Run the workflow and view the results.
Observed: zero rows, with the workflow reporting success.
Expected: four rows — `b`, `c`, `d`, `e`.
### Version/Branch
1.3.0-incubating-SNAPSHOT (main)
### Commit Hash (Optional)
_No response_
### What browsers are you seeing the problem on?
_No response_
### Relevant log output
```shell
```
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] File Scan emits zero rows when Offset is set and Limit is left empty [texera]
Posted by "eugenegujing (via GitHub)" <gi...@apache.org>.
eugenegujing commented on issue #7345:
URL: https://github.com/apache/texera/issues/7345#issuecomment-5213211062
> [@eugenegujing](https://github.com/eugenegujing) Can you add a screenshot?
I have included both screenshots from before and after fix in #7348.
--
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: [I] File Scan emits zero rows when Offset is set and Limit is left empty [texera]
Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on issue #7345:
URL: https://github.com/apache/texera/issues/7345#issuecomment-5212779739
@eugenegujing Can you add a screenshot?
--
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: [I] File Scan emits zero rows when Offset is set and Limit is left empty [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan closed issue #7345: File Scan emits zero rows when Offset is set and Limit is left empty
URL: https://github.com/apache/texera/issues/7345
--
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