-
Notifications
You must be signed in to change notification settings - Fork 19
Filter(s) 2nd approach
#927
Conversation
3edc8b0 to
b125483
Compare
5e3ddc0 to
d8b4f92
Compare
99e2438 to
fc17222
Compare
4e2c855 to
fe27c07
Compare
| t1 := testName == "date_range aggregation(file:agg_req,nr:22)" // we use relative time | ||
| t2 := testName == "complex filters(file:agg_req,nr:18)" // almost, we differ in doc 0 counts | ||
| // to be deleted after pancakes | ||
| t3 := testName == "clients/kunkka/test_0, used to be broken before aggregations merge fix"+ | ||
| t2 := testName == "clients/kunkka/test_0, used to be broken before aggregations merge fix"+ | ||
| "Output more or less works, but is different and worse than what Elastic returns."+ | ||
| "If it starts failing, maybe that's a good thing(file:clients/kunkka,nr:0)" | ||
| // below test is replacing it | ||
| // testName == "it's the same input as in previous test, but with the original output from Elastic."+ | ||
| // "Skipped for now, as our response is different in 2 things: key_as_string date (probably not important) + we don't return 0's (e.g. doc_count: 0)."+ | ||
| // "If we need clients/kunkka/test_0, used to be broken before aggregations merge fix" | ||
| return t1 || t2 || t3 | ||
| return t1 || t2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we're skipping more tests after this PR, but we actually skip one less (the one I remove here)
fe27c07 to
d08a273
Compare
Deploying quesma with
|
| Latest commit: |
aa4d576
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://db0dca0a.quesma.pages.dev |
| Branch Preview URL: | https://clover-filter-2nd-approach.quesma.pages.dev |
5453977 to
aed1d92
Compare
jakozaur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that's good, we may wish to merge it anyway.
I'm still puzzled with this approach. Way better than previous one, but adding to top where might break total count as well as not work if it's inside. Instead, I would likely keep combinator logic, but just one filter per query each.
jakozaur
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for now.
So, this isn't a full solution.
Before we only knew how to handle
filter(s)when they're leaves (or almost) in the aggregation tree.Now we still can do that, but we also handle when they're the first aggregation layer (we just split them into multiple pancakes, with different
WHERE)I find it likely that we won't really need anything more, as those 2 cases exhaust both all our tests, and customer's case, so maybe it's hard to make a dashboard in Kibana with filter in the middle.
But anyway even if we want to support that, adding most top-level filter to where clause seems like a special case and would still be the way to go, so this PR should be a step forward.