Repository navigation
[CALCITE-5589] ElasticsearchFilterRule cannot filter aggregate query - #5450
Conversation
|
Following the reviewers' recommendations, could you please take a look and review this when you have some time? Thanks! @mihaibudiu |
mihaibudiu
left a comment
There was a problem hiding this comment.
I reviewed this a while ago but apparently forgot to submit the review
|
|
||
| private ElasticsearchRules() {} | ||
|
|
||
| /** |
There was a problem hiding this comment.
why move this function?
There was a problem hiding this comment.
The method is now needed by two rules (ElasticsearchFilterRule.matches() in this fix and the existing ElasticsearchAggregateRule.convert()), and it was private, so it moved to the enclosing ElasticsearchRules class as a package-private static to be shared.
| .returns("CAT=2; MAX_VAL1=7.0\nCAT=1; MAX_VAL1=1.0\n"); | ||
| } | ||
|
|
||
| /** Test case for |
There was a problem hiding this comment.
which part of the test checks that the pushdown was successful?
There was a problem hiding this comment.
You are right and I had added more tests to cover it.
dbbd181 to
95e50fb
Compare
|



jira: https://issues.apache.org/jira/browse/CALCITE-5589