-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove temporal to kernels_arrow #6069
Remove temporal to kernels_arrow #6069
Conversation
@alamb I hope it was in line with your plan to move the codes. If there are places you think would be better, I'd love to hear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @berkaysynnada -- this is definitely in the right direction.
Eventually my hope is to use the add_dyn
kernels directly. This feature was added in apache/arrow-rs#4038 by @Weijun-H which will be in arrow 38 which should be landing in DataFusion sometime next week
@berkaysynnada can you please resolve the conflicts with this PR? I don't really understand the issue, but I suspect it will be straightforward to fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @berkaysynnada
Co-authored-by: Liang-Chi Hsieh <[email protected]>
Which issue does this PR close?
Closes #5704.
Rationale for this change
Temporal arithmetic code will be moved to arrow-rs eventually. For this purpose, this PR is an intermediate step that facilitates the process (the same pattern used for other removals).
What changes are included in this PR?
In datetime.rs, the
evaluate()
function calls the binary.rs functionresolve_temporal_op()
andresolve_temporal_op_scalar()
, according to type of the second value, Array or Scalar. It can access the add/sub_dyn...() functions in kernels_arrow.rs (the functions that will be moved to arrow-rs deployed here until arrow-rs changes happen)Are these changes tested?
Yes, with existing tests.
Are there any user-facing changes?