You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lidavidm similar question about units as in #12124 - should we only cover matching time units (e.g. subtract(timestamp[s], duration[s]) -> timestamp[s]) or allow non-matching units too (e.g. subtract(timestamp[s], duration[ms]) -> timestamp[s])?
I would expect that for non-matching resolution in the input, we cast to the most detailed resolution. But, this doesn't necessarily need to have kernels for all combinations of resolutions. I think the casting step before calling the kernel ("DispatchBest") should take care of that (like add(int64, int32) -> int64 is not a registered kernel (only add(int64, int64) is), but still works).
The same is true for subtract(timestamp, timestamp) -> duration, which is for now only implemented for matching resolutions, and also the automatic casting doesn't seem to work yet for timestamps.
@jorisvandenbossche It would appear test + doc only yes. ARROW-14095 added the subtract(timestamp, duration) kernel and dispatch best path to get from subtract(date, duration) -> subtract(timestamp, duration).
Benchmark runs are scheduled for baseline = d8f8c09 and contender = d747326. d747326 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.73% ⬆️0.73%] ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python. Runs only benchmarks with cloud = True
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java
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
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.
ARROW-14095