-
Notifications
You must be signed in to change notification settings - Fork 25k
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
ES|QL: Improve aggregation over constants handling #112392
base: main
Are you sure you want to change the base?
Changes from 1 commit
5159109
74129a0
ef3960e
c2db11c
d66004b
aedad55
47db145
4c03ce2
0e8d484
33a8587
636a6e0
0f83b2b
786daa6
5000836
7034814
f27ccd0
c444a61
d6ee3be
020bc9f
178c383
29dd29f
8ab89dc
db2259b
db006d6
1ef3b87
968dcfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5615,10 +5615,6 @@ public void testMatchFunctionIsNotNullable() { | |
); | ||
} | ||
|
||
private Literal nullOf(DataType dataType) { | ||
return new Literal(Source.EMPTY, null, dataType); | ||
} | ||
|
||
public void testCheckPercentileFoldableSecondArgument() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thought (not for this PR): should we throw tests like this into an own class, or into the VerifierTests? This is not strictly an optimizer tests, we only cannot run it like the remaining verifier tests due to depending on the optimizer to run before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree. It must be a ValidatableTests kind of class, because these tests are specific to this approach of performing the validation. I've moved them to a new class. We need a followup to clean the rest of the "Verification" exception checks. |
||
VerificationException e = expectThrows(VerificationException.class, () -> plan(""" | ||
from test | ||
|
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.
weighted_avg
andtop
are special in that they can take 2(+) arguments which, in case ofweighted_avg
, can even be non-foldable. I think we should add tests that show foldable propagation and propagation of nulls intoweighted_avg
andtop
as well.