-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure nullsmax for descending ordered pools
Closes #4709
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This test ensures that nulls are max for either descending or ascending | ||
# ordered pools | ||
|
||
script: | | ||
export ZED_LAKE=test | ||
zed init -q | ||
for o in asc desc; do | ||
echo "// order $o" | ||
zed create -q -use -orderby ts:$o $o | ||
echo '{ts:150} {ts:null}' | zed load -q - | ||
echo '{ts:1}' | zed load -q - | ||
zed query -z "from $o:objects | drop id, size" | ||
echo "// ===" | ||
zed query -z 'head 1' | ||
done | ||
outputs: | ||
- name: "stdout" | ||
data: | | ||
// order asc | ||
{min:1,max:1,count:1(uint64)} | ||
{min:150,max:null,count:2(uint64)} | ||
// === | ||
{ts:1} | ||
// order desc | ||
{min:150,max:null,count:2(uint64)} | ||
{min:1,max:1,count:1(uint64)} | ||
// === | ||
{ts:null} |