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

Scalar compile func #1679

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Scalar compile func #1679

merged 1 commit into from
Jun 14, 2023

Conversation

andyfengHKU
Copy link
Contributor

Add scalar_compile_func to remove special function evaluation that only happens at compile time.

Add nodes(RECURSIVE_REL), reps(RECURSIVE_REL)

@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Patch coverage: 95.12% and no project coverage change.

Comparison is base (abbb617) 91.15% compared to head (92e1a6f) 91.16%.

❗ Current head 92e1a6f differs from pull request most recent head 896ff12. Consider uploading reports for the commit 896ff12 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1679   +/-   ##
=======================================
  Coverage   91.15%   91.16%           
=======================================
  Files         732      733    +1     
  Lines       26583    26623   +40     
=======================================
+ Hits        24233    24270   +37     
- Misses       2350     2353    +3     
Impacted Files Coverage Δ
src/include/function/built_in_vector_operations.h 100.00% <ø> (ø)
src/include/function/function_definition.h 100.00% <ø> (ø)
src/function/vector_node_rel_operations.cpp 89.28% <89.28%> (ø)
src/function/vector_list_operation.cpp 89.55% <92.68%> (ø)
...inder/bind_expression/bind_function_expression.cpp 96.24% <100.00%> (+0.02%) ⬆️
src/expression_evaluator/function_evaluator.cpp 100.00% <100.00%> (ø)
src/function/built_in_vector_operations.cpp 96.72% <100.00%> (+0.04%) ⬆️
src/function/vector_map_operation.cpp 91.22% <100.00%> (ø)
src/function/vector_struct_operations.cpp 93.84% <100.00%> (+1.11%) ⬆️
src/function/vector_union_operations.cpp 91.89% <100.00%> (+1.56%) ⬆️
... and 4 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/include/function/struct/vector_struct_operations.h Outdated Show resolved Hide resolved
src/include/function/struct/vector_struct_operations.h Outdated Show resolved Hide resolved
@@ -12,6 +12,9 @@ namespace function {

struct VectorOperationDefinition;

using scalar_compile_func =
std::function<void(FunctionBindData*, const std::vector<std::shared_ptr<common::ValueVector>>&,
std::shared_ptr<common::ValueVector>&)>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think we never use a reference to a shared_ptr, either change it to a raw ptr or remove reference

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has to be a reference, because we are changing the shared_ptr inside compileFunc

src/function/vector_union_operations.cpp Outdated Show resolved Hide resolved
@andyfengHKU andyfengHKU merged commit 1bd26e4 into master Jun 14, 2023
8 checks passed
@andyfengHKU andyfengHKU deleted the scalar-compile-func branch June 14, 2023 20:32
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.

None yet

2 participants