-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support timestamp and interval arithmetic #5764
Merged
alamb
merged 41 commits into
apache:main
from
synnada-ai:feature/timestamp-interval-arith-query
Mar 30, 2023
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
1869363
first implementation and tests of timestamp subtraction
berkaysynnada 2f01278
improvement after review
berkaysynnada 806b4d3
postgre interval format option
berkaysynnada 708d717
random tests extended
berkaysynnada c5bacbe
corrections after review
berkaysynnada 011933f
operator check
berkaysynnada e475f58
flag is removed
berkaysynnada 423fb65
clippy fix
berkaysynnada 1291758
toml conflict
berkaysynnada 055ed81
Merge branch 'main' into feature/time-interval-support
berkaysynnada d7f3696
minor changes
berkaysynnada 8d5c8e3
deterministic matches
berkaysynnada 31577d9
simplifications (clippy error)
berkaysynnada c274aef
test format changed
berkaysynnada 968a682
minor test fix
berkaysynnada 49506ed
Merge branch 'main' into feature/time-interval-support
berkaysynnada ed63779
Update scalar.rs
berkaysynnada 68ea647
Refactoring and simplifications
ozankabak ed04466
Make ScalarValue support interval comparison
ozankabak 3bf8fd6
naming tests
berkaysynnada 0f8a7a7
macro renaming
berkaysynnada cf892fe
renaming macro
berkaysynnada 6b5484e
Merge branch 'apache:main' into feature/timestamp-interval-arith-query
berkaysynnada a078dbb
ok till arrow kernel ops
berkaysynnada 1c8fd69
Merge branch 'main' into feature/timestamp-interval-arith-query
berkaysynnada f27bdb7
Merge branch 'apache:main' into feature/timestamp-interval-arith-query
berkaysynnada 49727e1
Merge branch 'apache:main' into feature/timestamp-interval-arith-query
berkaysynnada bbfd9b1
macro will replace matches inside evaluate
berkaysynnada e14a16f
Code refactor
metesynnada 9f82bbb
retract changes in scalar and datetime
mustafasrepo 25d76f3
ts op interval with chrono functions
berkaysynnada 9de7875
bug fix and refactor
berkaysynnada d637efe
test refactor
berkaysynnada e2ee0ed
Enhance commenting
metesynnada 3e03a54
new binary operation logic, handling the inside errors
metesynnada 03d3aed
slt and minor changes
berkaysynnada 20b276a
tz parsing excluded
berkaysynnada ef1c194
replace try_binary and as_datetime, and keep timezone for ts+interval op
berkaysynnada f1e78f2
Merge branch 'main' into feature/timestamp-interval-arith-query
berkaysynnada 21e1df8
fix after merge
berkaysynnada b20eb77
delete unused functions
berkaysynnada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -44,6 +44,7 @@ unicode_expressions = ["unicode-segmentation"] | |||||
[dependencies] | ||||||
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] } | ||||||
arrow = { workspace = true } | ||||||
arrow-array = { version = "34.0.0", default-features = false, features = ["chrono-tz"] } | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rest of datafusion now uses arrow 36, but this uses arrow 34
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In #5794 |
||||||
arrow-buffer = { workspace = true } | ||||||
arrow-schema = { workspace = true } | ||||||
blake2 = { version = "^0.10.2", optional = true } | ||||||
|
Oops, something went wrong.
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.
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.
It would be nice if the error contained the problematic timezone. Something like