hanahmily opened a new pull request, #1222:
URL: https://github.com/apache/skywalking-banyandb/pull/1222

   ## What
   
   Adds a program-generated test pipeline for **stream** queries under 
`test/cases/stream/cmd/{generate,capture}`, mirroring the existing measure and 
trace frameworks — plus a supporting engine fix it surfaced.
   
   ### Generator (`cmd/generate`)
   - Three layers — leaf predicates, AND/OR criteria trees, and pairwise 
feature combinations — systematically cover BinaryOps, logical nesting, 
order-by (timestamp and indexed), limit/offset/projection, and multi-group 
queries.
   - Predicts each case's expected outcome (non-empty / empty / error) 
**deterministically from the seed**, which is verified against `testdata` via 
`verifySeedMirror`.
   
   ### Capture (`cmd/capture`, gated by `CAPTURE_STREAM_WANT_FIXTURES=1`)
   - Runs each generated query against a standalone server and **verifies the 
generator's prediction, failing on any mismatch**. It is the source of truth 
for non-empty golden files.
   
   ### Engine fix
   - Non-EQ/IN conditions on entity tags (`NE`, `NOT_IN`, `LT`/`GT`/`LE`/`GE`) 
were silently dropped and returned all rows. The stream query planner now 
returns `ErrUnsupportedConditionOp`, consistent with how `MATCH` on a skipping 
index is handled. These operations are **kept as expected-error test cases**, 
not dropped.
   
   ## Verification
   - `make check` clean; `golangci-lint` clean; Apache license headers present.
   - Capture oracle passes with zero prediction mismatches.
   - `go test ./test/integration/standalone/query/...` green (measure + stream 
+ trace + property).
   
   ## Notes
   - `SeedAll` was extracted into the stream `data` package, shared by the 
Ginkgo suite and the capture harness.
   - New make targets: `generate-stream-test-cases`, 
`capture-stream-test-cases`.
   


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