-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-14095: [C++] subtract(timestamp, duration) -> timestamp kernel #12137
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
Conversation
|
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 The same is true for |
|
@jorisvandenbossche heterogeneous time resolutions are now supported. |
|
This is now a test only change? |
|
@jorisvandenbossche It would appear test + doc only yes. ARROW-14095 added the |
docs/source/cpp/compute.rst
Outdated
| | sign | Unary | Numeric | Int8/Float32/Float64 | \(2) | | ||
| +------------------+--------+----------------------------+----------------------------+-------+ | ||
| | subtract | Binary | Numeric/Date/Duration | Numeric/Date/Duration | \(1) | | ||
| | subtract | Binary | Numeric/Timestamp/Duration | Numeric/Timestamp/Duration | \(1) | |
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.
Temporal instead of Timestamp?
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.
Changed Numeric/Timestamp/Duration -> Numeric/Temporal
| auto seconds_3_tz = ArrayFromJSON(timestamp(TimeUnit::SECOND, "UTC"), R"([3, null])"); | ||
| auto milliseconds_1k_tz = | ||
| ArrayFromJSON(timestamp(TimeUnit::MILLI, "UTC"), R"([1000, null])"); | ||
| CheckScalarBinary(op, seconds_3, milliseconds_2k, milliseconds_1k); |
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.
nor here
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.
Done.
|
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. |
ARROW-14095