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

Refactor aggregate functions #3136

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Refactor aggregate functions #3136

merged 1 commit into from
Mar 27, 2024

Conversation

manh9203
Copy link
Contributor

This PR resolves the issue #3050

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 91.94%. Comparing base (c1f68cd) to head (77a7d4e).

Files Patch % Lines
src/function/aggregate_function.cpp 85.18% 4 Missing ⚠️
src/function/aggregate/collect.cpp 95.74% 2 Missing ⚠️
src/function/aggregate/count.cpp 83.33% 1 Missing ⚠️
src/function/aggregate/count_star.cpp 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3136      +/-   ##
==========================================
- Coverage   91.95%   91.94%   -0.02%     
==========================================
  Files        1168     1168              
  Lines       44085    44062      -23     
==========================================
- Hits        40538    40511      -27     
- Misses       3547     3551       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acquamarin acquamarin requested review from acquamarin and removed request for andyfengHKU March 26, 2024 04:19
@@ -106,6 +107,17 @@ struct CollectFunction {
std::make_unique<common::LogicalType>(arguments[0]->dataType));
return std::make_unique<FunctionBindData>(std::move(returnType));
}

static function_set getFunctionSet() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move to cpp?

@@ -22,6 +23,14 @@ struct CountStarFunction : public BaseCountFunction {
(void)input;
state->count += multiplicity;
}

static function_set getFunctionSet() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move to cpp?

@manh9203 manh9203 force-pushed the aggregate-functions-refactor branch from a4107b6 to 77a7d4e Compare March 26, 2024 21:19
@manh9203 manh9203 merged commit 9ea80ec into master Mar 27, 2024
17 checks passed
@manh9203 manh9203 deleted the aggregate-functions-refactor branch March 27, 2024 05:49
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.

2 participants