Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use random splits for sort tests #5303

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@ engines:
endpoint: _elastic/sortorder/_search
json:
query:
match_all: {}
bool:
must_not:
match:
count: 10
sort:
- count: {"order" : "desc"}
expected:
hits:
total:
value: 7
value: 4
relation: "eq"
hits:
- _source: { "count": 15, "id": 2 }
- _source: { "count": 10, "id": 0 }
- _source: { "count": 10, "id": 2 }
- _source: { "count": 10, "id": 1 }
- _source: {"count": -2.5, "id": 4}
- _source: { "count": -2.5, "id": 4 }
- _source: { "id": 5 }
- _source: { "id": 3 }
---
endpoint: _elastic/sortorder/_search
json:
query:
match_all: {}
bool:
must_not:
match:
count: 10
sort:
- count: {"order" : "asc"}
expected:
hits:
total:
value: 7
value: 4
relation: "eq"
hits:
- _source: {"count": -2.5, "id": 4}
- _source: {"count": 10, "id": 1 }
- _source: {"count": 10, "id": 2 }
- _source: {"count": 10, "id": 0 }
- _source: {"count": 15, "id": 2 }
- _source: {"id": 3}
- _source: {"id": 5}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ method: POST
endpoint: sortorder/ingest
params:
commit: force
ndjson:
min_splits: 1
max_splits: 10
shuffle_ndjson:
- {"count": 10, "id": 1}
- {"count": 10, "id": 2}
- {"count": 15, "id": 2}
- {"id": 3}
---
# Ingest documents split #2
method: POST
endpoint: sortorder/ingest
params:
commit: force
ndjson:
- {"count": 10, "id": 0}
- {"count": -2.5, "id": 4}
- {"id": 5}
Expand Down
Loading