-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporal datatype support for interval arithmetic (#5971)
* first implementation and tests of timestamp subtraction * improvement after review * postgre interval format option * random tests extended * corrections after review * operator check * flag is removed * clippy fix * toml conflict * minor changes * deterministic matches * simplifications (clippy error) * test format changed * minor test fix * Update scalar.rs * Refactoring and simplifications * Make ScalarValue support interval comparison * naming tests * macro renaming * renaming macro * ok till arrow kernel ops * macro will replace matches inside evaluate add tests macro will replace matches inside evaluate ready for review * Code refactor * retract changes in scalar and datetime * ts op interval with chrono functions * bug fix and refactor * test refactor * Enhance commenting * new binary operation logic, handling the inside errors * slt and minor changes * tz parsing excluded * replace try_binary and as_datetime, and keep timezone for ts+interval op * fix after merge * delete unused functions * ready to review * correction after merge * change match order * minor changes * simplifications * update lock file * Refactoring tests You can add a millisecond array as well, but I used Nano. * bug detected * bug fixed * update cargo * tests added * minor changes after merge * fix after merge * code simplification * Some simplifications * Update min_max.rs * arithmetics moved into macros * fix cargo.lock * remove unwraps from tests * Remove run-time string comparison from the interval min/max macro * adapt upstream changes of timezone signature --------- Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com> Co-authored-by: metesynnada <100111937+metesynnada@users.noreply.github.com> Co-authored-by: Mustafa Akur <mustafa.akur@synnada.ai>
- Loading branch information
1 parent
ca60ff1
commit bd705fe
Showing
9 changed files
with
983 additions
and
97 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.