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

Draft example of arithmetic function refactor #3049

Closed
wants to merge 1 commit into from

Conversation

andyfengHKU
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

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

Project coverage is 93.25%. Comparing base (7110f91) to head (ba82c46).

Files Patch % Lines
src/function/vector_arithmetic_functions.cpp 98.49% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3049   +/-   ##
=======================================
  Coverage   93.24%   93.25%           
=======================================
  Files        1133     1133           
  Lines       43117    43132   +15     
=======================================
+ Hits        40204    40221   +17     
+ Misses       2913     2911    -2     

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

@@ -5,6 +5,10 @@
namespace kuzu {
namespace catalog {

ScalarFunctionCatalogEntry::ScalarFunctionCatalogEntry(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need an additional constructor for const char* name. implicit cast will happen when the user provides name as a const char*.

@@ -12,6 +12,7 @@ class ScalarFunctionCatalogEntry final : public FunctionCatalogEntry {
// constructors
//===--------------------------------------------------------------------===//
ScalarFunctionCatalogEntry() = default;
ScalarFunctionCatalogEntry(const char* name, function::function_set functionSet);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto, we don't need this additional constructor

@andyfengHKU
Copy link
Contributor Author

This is duplicated with #3079

@andyfengHKU andyfengHKU deleted the refactor-arithmetic-functions branch March 19, 2024 19:45
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