Skip to content
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

feat: Add aggregate offset support #778

Merged
merged 7 commits into from
Sep 8, 2022

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #379

Description

Adds offset support for aggregates. Also introduces a new enumerable type.

Specify the platform(s) on which this was tested:

  • Debian Linux

@AndrewSisley AndrewSisley added feature New feature or request area/query Related to the query component action/no-benchmark Skips the action that runs the benchmark. labels Sep 7, 2022
@AndrewSisley AndrewSisley added this to the DefraDB v0.3.1 milestone Sep 7, 2022
@AndrewSisley AndrewSisley requested a review from a team September 7, 2022 18:05
@AndrewSisley AndrewSisley self-assigned this Sep 7, 2022
@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Merging #778 (a88895f) into develop (b9116bc) will increase coverage by 0.11%.
The diff coverage is 92.50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #778      +/-   ##
===========================================
+ Coverage    58.60%   58.72%   +0.11%     
===========================================
  Files          152      153       +1     
  Lines        17056    17120      +64     
===========================================
+ Hits          9995    10053      +58     
- Misses        6125     6129       +4     
- Partials       936      938       +2     
Impacted Files Coverage Δ
query/graphql/mapper/mapper.go 84.84% <78.57%> (-0.14%) ⬇️
core/enumerable/skip.go 84.21% <84.21%> (ø)
query/graphql/planner/count.go 95.95% <100.00%> (+0.35%) ⬆️
query/graphql/planner/sum.go 85.57% <100.00%> (+0.59%) ⬆️
query/graphql/schema/generate.go 83.14% <100.00%> (+0.27%) ⬆️

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

Thanks for all the testing effort! LGTM

@AndrewSisley AndrewSisley merged commit 3f6632f into develop Sep 8, 2022
@AndrewSisley AndrewSisley deleted the sisley/feat/I379-agg-offset branch September 8, 2022 15:16
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Use const over string for offset

* Add enumerable skip support

* Add offset support for inline array count

* Add offset support for inline array numeric aggs

* Add offset support for relation counts

Docs need to be treated differently else they will be offsetted twice (applied on select, then again here).

* Add offset support for relation numeric aggs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/query Related to the query component feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aggregate: Add offset support
3 participants