Fix the issue that comparison function could not handle decimal arguments with different scales#53
Closed
zanmato1984 wants to merge 1 commit intomainfrom
Closed
Fix the issue that comparison function could not handle decimal arguments with different scales#53zanmato1984 wants to merge 1 commit intomainfrom
zanmato1984 wants to merge 1 commit intomainfrom
Conversation
…ents with different scale
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or See also: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apache#47378)
Rationale for this change
In order to support special form (apache#47374), the kernels have to respect the selection vector. Currently none of the kernels does. And it's almost impossible for us to make all existing kernels to respect the selection vector at once (and we probably never will). Thus we need an incremental way to add selection-vector-aware kernels on demand, meanwhile accommodate legacy (selection-vector-non-aware) kernels to be executed "selection-vector-aware"-ly in a general manner - the idea is to first "gather" selected rows from the batch into a new batch, evaluate the expression on the new batch, then "scatter" the result rows into the positions where they belong in the original batch.
This makes the
takeandscatterfunctions dependencies of the exec facilities, which is in compute core (libarrow). Andtakeis already in compute core. Now we need to movescatter.I'm implementing the selective execution of kernels in apache#47377, including invoking
takeandscatteras explained above. And I have to write tests of that inexec_test.ccwhich is deliberately declared to be NOT depending on libarrow_compute.What changes are included in this PR?
Move scatter compute function into compute core.
Are these changes tested?
Yes. Manually tested.
Are there any user-facing changes?
None.
scatterfunction into compute core apache/arrow#47375Authored-by: Rossi Sun zanmato1984@gmail.com
Signed-off-by: Rossi Sun zanmato1984@gmail.comThanks for opening a pull request!
If this is your first pull request you can find detailed information on how to contribute here:
Please remove this line and the above text before creating your pull request.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?
This PR includes breaking changes to public APIs. (If there are any breaking changes to public APIs, please explain which changes are breaking. If not, you can remove this.)
This PR contains a "Critical Fix". (If the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld), please provide explanation. If not, you can remove this.)