Skip to content

Commit

Permalink
Fix flakiness in runtime/ztests/issue-4013.yaml (#5199)
Browse files Browse the repository at this point in the history
This test went flaky with #5174 because the optimizer began lifting the
head operator into the legs of the fork operator, causing the pass leg
to stop pulling until EOS.
  • Loading branch information
nwt authored Aug 2, 2024
1 parent dba2fd3 commit c39086b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions runtime/ztests/issue-4013.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Make sure "fork (=> ... => ...) | head" with one leg that pulls until
# EOS and one that does not works for an input containing multiple
# batches.
# Make sure "fork (=> ... => ...) | yield this | head" with one leg that pulls
# until EOS and one that does not works for an input containing multiple
# batches. ("yield this" prevents the optimizer from lifting "head" into the
# legs.)
script: |
seq 1000 | zq -z 'fork (=> count() => pass) | head' -
seq 1000 | zq -z 'fork (=> count() => pass) | yield this | head' -
echo ===
seq 1000 | zq -z 'fork (=> pass => count()) | head' -
seq 1000 | zq -z 'fork (=> pass => count()) | yield this | head' -
outputs:
- name: stdout
Expand Down

0 comments on commit c39086b

Please sign in to comment.