-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
ESQL Date Nanos Addition and Subtraction #116839
Merged
not-napoleon
merged 20 commits into
elastic:main
from
not-napoleon:esql-date-nanos-add-and-subtract
Dec 2, 2024
Merged
Changes from 12 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
cf6705c
type plumbing
not-napoleon 15c5d3a
test case bounds checking, etc
not-napoleon 07cdbf6
actually build the date nanos evaluator
not-napoleon 352cda8
ZonedDateTime vs Instant
not-napoleon bd71603
fix test verification function
not-napoleon cb0baca
fix test failure
not-napoleon f3e031e
fix common types tests
not-napoleon e9ec7a8
Wire up subtraction
not-napoleon aa1ef87
pull in datetime tests, and fix error message
not-napoleon 2dddb42
add capability check
not-napoleon a69c9a5
csv tests for subtract against indexed data
not-napoleon f6fc138
spotless apply
not-napoleon 9c3a9df
Merge branch 'main' into esql-date-nanos-add-and-subtract
not-napoleon dff58a0
Merge branch 'main' into esql-date-nanos-add-and-subtract
elasticmachine bb16502
sort results of CSV tests
not-napoleon 1ba6378
sort results of CSV tests
not-napoleon 35fdb06
Merge branch 'main' into esql-date-nanos-add-and-subtract
not-napoleon 95806b7
remove reference to feature flag
not-napoleon f5b41aa
Merge branch 'main' into esql-date-nanos-add-and-subtract
not-napoleon 0fbead2
Merge branch 'main' into esql-date-nanos-add-and-subtract
not-napoleon 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
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.
I considered adding
DATE_NANOS
toisDateTime
, but that creates a few problems. First off, we useisDateTime
in a lot of places, and touching all of them would have made this already quite large PR even larger. Second, there are clearly some places, such asEsqlDataTypeConverter
which clearly need to check for exactlyDATETIME
type, and would have incorrect behavior if we expandedisDateTime
to includeDATE_NANOS
. Given that, it seemed like adding a new function was the safest way to proceed.