-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(rust): add decimal chunked comparison support #11066
feat(rust): add decimal chunked comparison support #11066
Conversation
First contribution... and I've been using polars only as a user. So apologies for any misconceptions. |
I think this implementation is incorrect when the scale and precision are not equal. |
@orlp thanks for the comment. I agree with you. Requiring both decimals to have the same precision and scale is unnecessarily restrictive. After all, we have fixed-point data. But two notes regarding that:
In summary, I'd be inclined to add the proper comparison between decimals of different precision/scale in the In any case, if you prefer to have this restriction for now, I'd like to return an error when precision/scale mismatch: Please, let me know your thoughts regarding that. |
I believe our intention is to rely less and less on |
Yes, that should all be handled in polars. |
Ref #12118 Thanks for the initiative on this issue. For now, I will close this PR as it hasn't been updated in a while, and the implementation is not complete. Plus it lacks tests implemented on the Python side. If you want to pick this back up, feel free to rebase and re-open this PR to continue working on it. The issue is still very much relevant. |
I noticed that there is no comparison support for the
Decimal(precision, scale)
chunked. So this PR adds that.Changes: