effdsl icon indicating copy to clipboard operation
effdsl copied to clipboard

Add aggregation support

Open obukhow opened this issue 8 months ago • 1 comments

Add aggregation support for queries

An aggregation summarizes your data as metrics, statistics, or other analytics. https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html

Description

Started by implementing two most common used aggregations – terms bucket and stats metric aggregation. Other aggregations type could be implemented by extending AggregationInterface

  • [ ] Bug fix
  • [x] Feature addition
  • [ ] Code refactoring
  • [ ] Documentation update
  • [ ] Other (please explain):

Related Issue

How Has This Been Tested?

  • [x] Unit tests
  • [ ] Integration tests
  • [x] Manual testing

Checklist

  • [x] My code follows the style guidelines of this project.
  • [x] I have performed a self-review of my code.
  • [ ] I have made corresponding changes to the documentation.
  • [x] I have added tests that ensure my fix is effective or that my feature works.
  • [x] New and existing unit tests pass locally with my changes.
  • [ ] Any dependent changes have been merged and published in downstream modules.

obukhow avatar Mar 30 '25 19:03 obukhow

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
effdsl.go 69.30% <100.00%> (+3.00%) :arrow_up:
search_aggregation.go 100.00% <100.00%> (ø)
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov-commenter avatar Mar 30 '25 19:03 codecov-commenter