Matthew-DWM opened a new issue, #9506:
URL: https://github.com/apache/texera/issues/9506
### Task Summary
Reservoir Sampling's one property, the sample size k ("Number of item
sampled in reservoir sampling"), has no lower bound in its schema. So the
property editor accepts 0 or a negative number and enables Run.
A sample size below 1 is never valid. The engine refuses it at the first
row, but a refused row pauses the worker rather than failing the run, so
Reservoir Sampling stays Running until the run is killed. A new operator starts
with k empty, and the required check already blocks Run; it is a typed 0 or a
negative number that gets through.
Declaring `minimum: 1` on k (`@JsonSchemaInject(json = """{"minimum":
1}""")`, as #8514 did for the file scans' Limit and Offset) makes the form
refuse the value. The editor then shows "Invalid Workflow" instead of starting
a run that hangs. A k from the API, an imported workflow or a loop variable
still reaches the engine, whose refusal covers it. The operator's reference
page lists the default as 0, which the schema doesn't declare; it becomes "-"
with "(min: 1)".
This is a bound on the form; no operator's behaviour changes.
Found while verifying the fix for #9503.
### Task Type
- [ ] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [ ] Testing / QA
- [ ] Documentation
- [ ] Performance
- [x] Other
--
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]