Skip to content

Count implementation #230

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

Merged
merged 2 commits into from
Feb 18, 2022
Merged

Count implementation #230

merged 2 commits into from
Feb 18, 2022

Conversation

AnaNek
Copy link
Contributor

@AnaNek AnaNek commented Oct 26, 2021

Add implementation of count() method

This patch introduces count method that:

  • has arguments and options like select()/pairs();
  • counts number of rows in space with yield by count_to_yield;
  • counts by any conditions.

Closes #74

@AnaNek AnaNek marked this pull request as draft October 26, 2021 08:48
@AnaNek AnaNek force-pushed the count-implementation branch from 30ec2ce to 11aec65 Compare October 28, 2021 15:45
@AnaNek AnaNek requested a review from ligurio October 28, 2021 15:50
@AnaNek AnaNek marked this pull request as ready for review October 28, 2021 15:50
Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

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

What was actually implemented in these changes?
PR description says that it closes ticket #74. Ticket 74 contains a discussion with different opinions of what and how it should be implemented. Get me right: I don't want to repeat stories that happen in another PR's and modules when developer, product manager, reviewer have different views regarding requirements.

Copy link
Member

@ligurio ligurio 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 the patches!
I did an initial review, and I'll continue after fixes.

@AnaNek AnaNek force-pushed the count-implementation branch from 48af65b to 97883b0 Compare November 28, 2021 01:57
@AnaNek AnaNek force-pushed the count-implementation branch 5 times, most recently from 7d6d6c5 to 96fb0d5 Compare December 8, 2021 20:36
@AnaNek AnaNek force-pushed the count-implementation branch from 616753d to 408315d Compare December 27, 2021 13:45
@ligurio ligurio requested review from ligurio December 29, 2021 13:50
Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

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

We are close to finish. However, I have several comments.

@AnaNek AnaNek force-pushed the count-implementation branch from 408315d to 5bde6cf Compare January 17, 2022 10:22
@AnaNek AnaNek force-pushed the count-implementation branch from 5bde6cf to 12eaee3 Compare February 9, 2022 10:00
@AnaNek AnaNek requested a review from Totktonada February 10, 2022 10:35
@AnaNek AnaNek requested a review from ligurio February 10, 2022 10:35
@AnaNek AnaNek force-pushed the count-implementation branch from 12eaee3 to 52a6a03 Compare February 15, 2022 13:05
@AnaNek AnaNek requested a review from ligurio February 15, 2022 16:39
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

LGTM aside of several tiny comments above. Ok to push from me after fixes (not need to re-review).

Please, finish review with @ligurio first.

Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

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

LGTM aside comments left by @Totktonada and merge conflict.

Thanks for your patience!

@AnaNek AnaNek force-pushed the count-implementation branch from 52a6a03 to 01054ac Compare February 18, 2022 15:42
For `count` implementation with the support of the
query by conditions there is a need to use query plan
and condition filters that has been already written
for select. This commit separates common methods from
select module and moves them in common folders.

Part of #74
@AnaNek AnaNek force-pushed the count-implementation branch from 01054ac to 4ada70e Compare February 18, 2022 15:45
This commit introduces count method that:
* has arguments and options like `select()`/`pairs()`;
* counts number of rows in space with yield by `yield_every`;
* counts by any conditions.

Closes #74
@AnaNek AnaNek force-pushed the count-implementation branch from 4ada70e to 69babeb Compare February 18, 2022 15:57
@AnaNek AnaNek mentioned this pull request Feb 18, 2022
@AnaNek AnaNek requested review from ligurio and Totktonada February 18, 2022 16:21
@Totktonada Totktonada merged commit 813f7ea into master Feb 18, 2022
@Totktonada Totktonada deleted the count-implementation branch February 18, 2022 16:25
DifferentialOrange added a commit that referenced this pull request Apr 8, 2022
Several "0.10.0" section changelog entries (see PRs #230 and #239) were
added after 0.10.0 release. This patch fixes the inconsistency by moving
them to "Unreleased" section.

Follows up #74, #237
DifferentialOrange added a commit that referenced this pull request Apr 10, 2022
Several "0.10.0" section changelog entries (see PRs #230 and #239) were
added after 0.10.0 release. This patch fixes the inconsistency by moving
them to "Unreleased" section.

Follows up #74, #237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement count() method
3 participants