Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
f95c2a8
Add capability and YAML tests for request and SET time_zone parameters
ivancea Oct 17, 2025
569d9e5
Add SET CSV tests, and adapted CsvTests to work with SET statements
ivancea Oct 17, 2025
cc15c9f
Escape ; in csv tests with backslash
ivancea Oct 17, 2025
449abe6
Randomize configuration in function tests, and make it static for the…
ivancea Oct 17, 2025
5dec7c3
[CI] Auto commit changes from spotless
Oct 17, 2025
fedbf4f
Merge branch 'main' into esql-time-zone-tests
ivancea Oct 27, 2025
b088abf
Moved custom config cases to another method
ivancea Oct 27, 2025
ee1316c
Add comment on function with config dserialization randomization
ivancea Oct 27, 2025
13d8b4b
Fix multi cluster tests to accept SET statements
ivancea Oct 27, 2025
d794329
Merge branch 'main' into esql-time-zone-tests
ivancea Oct 27, 2025
2713280
Fix configuration and source matching in random tests
ivancea Oct 28, 2025
f76f5ec
Added function tests for timezones
ivancea Oct 28, 2025
9005c78
Fix typo
ivancea Oct 28, 2025
fad189f
Fixed capability requirement
ivancea Oct 28, 2025
4f62f23
Fix ScalbTests
ivancea Oct 28, 2025
4c5adc0
[CI] Auto commit changes from spotless
Oct 28, 2025
3f233bf
Add configuration to DATE_TRUNC and related functions
ivancea Oct 28, 2025
d81729b
Merge branch 'main' into esql-time-zone-tests
ivancea Oct 29, 2025
8b8a115
Merge branch 'esql-time-zone-tests' into esql-datetrunc-timezone
ivancea Oct 29, 2025
a11d4b8
Merge branch 'main' into esql-datetrunc-timezone
ivancea Oct 29, 2025
ebd00dd
Added a ConfigurationFUnction interface and fixed tests with static c…
ivancea Oct 29, 2025
de30da7
WIP: Initial DateTrunc unit tests
ivancea Oct 29, 2025
dcce704
Reuse DateTrunc tests in Bucket and TBucket
ivancea Oct 30, 2025
24e99c1
Added unit tests for timezones
ivancea Oct 31, 2025
dd523d5
Extracted matchers
ivancea Oct 31, 2025
ad32a98
Moved matchers to a common place
ivancea Oct 31, 2025
539b7a7
Extracted date_trunc csv tests to date
ivancea Oct 31, 2025
5053983
Update docs/changelog/137450.yaml
ivancea Oct 31, 2025
a75301c
Fix benchmark
ivancea Oct 31, 2025
7e5c01d
Added CSV tests for timezones on affected functions
ivancea Oct 31, 2025
544c4cf
Fixed Rounding builders being reused
ivancea Oct 31, 2025
e499df4
Use DateTrunc zoneId instead of configuration in rule
ivancea Oct 31, 2025
205a15c
Undo roundings test
ivancea Oct 31, 2025
46debec
Fix tests
ivancea Oct 31, 2025
29707e5
Fixed tests and their testcase names
ivancea Nov 3, 2025
a40f913
Merge branch 'main' into esql-datetrunc-timezone
ivancea Nov 3, 2025
00e2d67
Merge branch 'main' into esql-datetrunc-timezone
ivancea Nov 3, 2025
e3ae6ba
Added tests for locale and timezone
ivancea Nov 4, 2025
096541f
Use TypeSafeMatcher on BytesRef matcher
ivancea Nov 5, 2025
b9100bd
Removed ESQL dependency from the matcher docs
ivancea Nov 5, 2025
f6d6d2c
Merge branch 'main' into esql-datetrunc-timezone
ivancea Nov 5, 2025
de3dd41
Moved matchers to server.test
ivancea Nov 5, 2025
ee0af20
Avoid renaming timestamp in TS functions
ivancea Nov 5, 2025
44ad461
Format
ivancea Nov 5, 2025
84b882e
Add extra cases to dateCases
ivancea Nov 5, 2025
2f0b404
[CI] Auto commit changes from spotless
Nov 5, 2025
096d9b3
Add tests for every combination of cases
ivancea Nov 6, 2025
fdc0cf8
Merge branch 'main' into esql-datetrunc-timezone
ivancea Nov 6, 2025
4dc641f
[CI] Auto commit changes from spotless
Nov 6, 2025
d46fc5b
Fixed date intervals with +1 units, and added negative years tests
ivancea Nov 6, 2025
bdd7138
Updated duration tests to cover all timezone kinds
ivancea Nov 7, 2025
55c4efd
Reorganized tests
ivancea Nov 7, 2025
d25ab57
Remove redundant test cases
ivancea Nov 7, 2025
b7d63b9
Added midnight DST tests
ivancea Nov 7, 2025
a3e592c
[CI] Auto commit changes from spotless
Nov 7, 2025
3b34ef6
Fixed midnight DST test
ivancea Nov 7, 2025
e76d5b2
Merge branch 'esql-datetrunc-timezone' of github.com:ivancea/elastics…
ivancea Nov 7, 2025
2194e83
Merge branch 'main' into esql-datetrunc-timezone
ivancea Nov 7, 2025
e26c61d
Merge branch 'esql-datetrunc-timezone' into esql-date-function-tests
ivancea Nov 7, 2025
f9886b1
Simplified timezones for tests
ivancea Nov 10, 2025
df8b7c6
Fixed signature generation failing because of nanos assumptions
ivancea Nov 10, 2025
4723f43
Simplified timezones for tests
ivancea Nov 10, 2025
561f99c
Fixed signature generation failing because of nanos assumptions
ivancea Nov 10, 2025
ba354eb
Merge branch 'esql-datetrunc-timezone' into esql-date-function-tests
ivancea Nov 10, 2025
16bdcf9
Merge branch 'main' into esql-date-function-tests
ivancea Nov 14, 2025
0c91474
Move string matcher to ReadableMatchers
ivancea Nov 14, 2025
f162409
Remove unused method
ivancea Nov 14, 2025
ff51e44
Merge branch 'main' into esql-date-function-tests
ivancea Nov 17, 2025
4e81b66
Remove redundant packages
ivancea Nov 18, 2025
ca5be79
Merge branch 'main' into esql-date-function-tests
ivancea Nov 18, 2025
5b5a330
Remove redundant qualifier
ivancea Nov 18, 2025
e4579a9
Merge branch 'esql-date-function-tests' into esql-add-timezone-date-f…
ivancea Nov 18, 2025
9b9550c
Prepared datediff tests
ivancea Nov 18, 2025
b5d349c
Merge branch 'main' into esql-add-timezone-date-functions
ivancea Nov 19, 2025
997fa96
Inject configuration into datediff
ivancea Nov 19, 2025
dadd811
Initial DST tests for DateDiff
ivancea Nov 19, 2025
6d6097b
DateDiff tests and implementation
ivancea Nov 19, 2025
e18ad22
Update docs/changelog/138316.yaml
ivancea Nov 19, 2025
673ae36
Added tests where DST changes results
ivancea Nov 19, 2025
8557b23
Randomized cases with times
ivancea Nov 19, 2025
13c8e0f
Merge branch 'main' into esql-add-timezone-date-functions
ivancea Nov 19, 2025
cef686f
Add CSV tests
ivancea Nov 20, 2025
9f189fb
Merge branch 'main' into esql-add-timezone-date-functions
ivancea Nov 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/138316.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 138316
summary: '`DateDiff` timezone support'
area: ES|QL
type: feature
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,28 @@ ROW end_23 = TO_DATETIME("2023-12-31T23:59:59.999Z"),
// end::evalDateDiffYearForDocs-result[]
;

dateDiffOffsetTimezone
required_capability: date_diff_timezone_support

set time_zone="+03:00"\;
ROW diff = DATE_DIFF("months", "2010-10-07T00:00:00-03:00"::date, "2010-11-06T23:01:00-04:00"::date)
;

diff:integer
1
;

dateDiffDstTimezone
required_capability: date_diff_timezone_support

set time_zone="America/Goose_Bay"\;
ROW diff = DATE_DIFF("months", "2010-10-07T00:00:00-03:00"::date, "2010-11-06T23:01:00-04:00"::date)
;

diff:integer
0
;

evalDateParseWithSimpleDate
row a = "2023-02-01" | eval b = date_parse("yyyy-MM-dd", a) | keep b;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading