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

Arithmetic function framework refactor #1312

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

acquamarin
Copy link
Collaborator

This PR refactors the current arithmetic function framework.

src/include/function/cast/cast_operations.h Outdated Show resolved Hide resolved
executeOnValue<OPERAND_TYPE, RESULT_TYPE, FUNC, OP_WRAPPER>(
operand, pos, resultValues[pos], result);
executeOnValue<OPERAND_TYPE, RESULT_TYPE, FUNC, OP_WRAPPER>(operand, pos,
resultValues[result.state->selVector->selectedPositions[0]], result);
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we changing this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a bug in the executor.
The result and source vector may not have the same state

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. Can u then in this function create local variable inputPos and resultPos and check unaryExecute/SelectSwitch as well as unary boolean executor?

I think we have the same problem across these two places

src/include/common/expression_type.h Outdated Show resolved Hide resolved
src/function/built_in_vector_operations.cpp Outdated Show resolved Hide resolved
src/binder/expression_binder.cpp Outdated Show resolved Hide resolved
src/include/function/cast/vector_cast_operations.h Outdated Show resolved Hide resolved
src/function/vector_cast_operations.cpp Outdated Show resolved Hide resolved
src/include/function/built_in_vector_operations.h Outdated Show resolved Hide resolved
executeOnValue<OPERAND_TYPE, RESULT_TYPE, FUNC, OP_WRAPPER>(
operand, pos, resultValues[pos], result);
executeOnValue<OPERAND_TYPE, RESULT_TYPE, FUNC, OP_WRAPPER>(operand, pos,
resultValues[result.state->selVector->selectedPositions[0]], result);
Copy link
Contributor

Choose a reason for hiding this comment

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

ok. Can u then in this function create local variable inputPos and resultPos and check unaryExecute/SelectSwitch as well as unary boolean executor?

I think we have the same problem across these two places

src/binder/expression_binder.cpp Outdated Show resolved Hide resolved
@acquamarin acquamarin merged commit 77de059 into master Feb 23, 2023
@acquamarin acquamarin deleted the function-framework-refactor branch February 23, 2023 03:43
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