Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Support filter clause in aggregations #960

Merged
merged 8 commits into from
Jan 6, 2021

Conversation

chloe-zh
Copy link
Member

@chloe-zh chloe-zh commented Jan 5, 2021

Issue #, if available:
#964

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

# Conflicts:
#	sql/src/test/java/com/amazon/opendistroforelasticsearch/sql/sql/parser/context/QuerySpecificationTest.java
@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #960 (c50e6ef) into develop (d419e8e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #960   +/-   ##
==========================================
  Coverage      99.87%   99.87%           
- Complexity      2347     2350    +3     
==========================================
  Files            232      232           
  Lines           5395     5413   +18     
  Branches         350      349    -1     
==========================================
+ Hits            5388     5406   +18     
  Misses             5        5           
  Partials           2        2           
Impacted Files Coverage Δ Complexity Δ
...elasticsearch/sql/analysis/ExpressionAnalyzer.java 100.00% <100.00%> (ø) 32.00 <0.00> (+1.00)
...csearch/sql/expression/aggregation/Aggregator.java 100.00% <100.00%> (ø) 9.00 <6.00> (+6.00)
...arch/sql/expression/aggregation/AvgAggregator.java 100.00% <100.00%> (ø) 4.00 <1.00> (-2.00)
...ch/sql/expression/aggregation/CountAggregator.java 100.00% <100.00%> (ø) 4.00 <1.00> (-2.00)
...arch/sql/expression/aggregation/MaxAggregator.java 100.00% <100.00%> (ø) 4.00 <1.00> (-2.00)
...arch/sql/expression/aggregation/MinAggregator.java 100.00% <100.00%> (ø) 4.00 <1.00> (-2.00)
...ch/sql/expression/aggregation/NamedAggregator.java 100.00% <100.00%> (ø) 6.00 <1.00> (ø)
...arch/sql/expression/aggregation/SumAggregator.java 100.00% <100.00%> (ø) 4.00 <1.00> (-2.00)
...sponse/ElasticsearchAggregationResponseParser.java 100.00% <100.00%> (ø) 13.00 <1.00> (+2.00)
...ript/aggregation/dsl/MetricAggregationBuilder.java 100.00% <100.00%> (ø) 14.00 <3.00> (+2.00)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d419e8e...c50e6ef. Read the comment docs.

@chloe-zh chloe-zh marked this pull request as ready for review January 6, 2021 18:37
@chloe-zh chloe-zh self-assigned this Jan 6, 2021
@chloe-zh chloe-zh added the SQL label Jan 6, 2021
@penghuo penghuo self-requested a review January 6, 2021 18:59
Copy link
Member

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create an issue for this new feature. Thanks!

Copy link
Member

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@chloe-zh chloe-zh merged commit 280482c into opendistro-for-elasticsearch:develop Jan 6, 2021
@dai-chen dai-chen added the enhancement New feature or request label Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request SQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants