Skip to content

Fix the issue that comparison function could not handle decimal arguments with different scales#53

Closed
zanmato1984 wants to merge 1 commit intomainfrom
fix/gh-41011
Closed

Fix the issue that comparison function could not handle decimal arguments with different scales#53
zanmato1984 wants to merge 1 commit intomainfrom
fix/gh-41011

Conversation

@zanmato1984
Copy link
Copy Markdown
Owner

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 take and scatter functions dependencies of the exec facilities, which is in compute core (libarrow). And take is already in compute core. Now we need to move scatter.

I'm implementing the selective execution of kernels in apache#47377, including invoking take and scatter as explained above. And I have to write tests of that in exec_test.cc which 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.

Authored-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.)

Copy link
Copy Markdown
Owner Author

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

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

ok

@github-actions
Copy link
Copy Markdown

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?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant