@@ -4,7 +4,7 @@ tbucketByTenSecondsDuration#[skip:-9.1.99,reason:new grouping function added in
44required_capability: tbucket
55
66FROM sample_data
7- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(10 seconds)
7+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(10 seconds)
88| SORT min
99;
1010
@@ -23,7 +23,7 @@ required_capability: implicit_casting_string_literal_to_temporal_amount
2323required_capability: tbucket
2424
2525FROM sample_data
26- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("10 seconds")
26+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("10 seconds")
2727| SORT min
2828;
2929
@@ -41,47 +41,47 @@ tbucketByTenMinutesDuration#[skip:-9.1.99,reason:new grouping function added in
4141required_capability: tbucket
4242
4343FROM sample_data
44- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(10 minutes)
44+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(10 minutes)
4545| SORT min
4646;
4747
4848min:datetime | max:datetime | bucket:datetime
49492023-10-23T12:15:03.360Z | 2023-10-23T12:15:03.360Z | 2023-10-23T12:10:00.000Z
50502023-10-23T12:27:28.948Z | 2023-10-23T12:27:28.948Z | 2023-10-23T12:20:00.000Z
51512023-10-23T13:33:34.937Z | 2023-10-23T13:33:34.937Z | 2023-10-23T13:30:00.000Z
52- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:50:00.000Z
52+ 2023-10-23T13:51:54.732Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:50:00.000Z
5353;
5454
5555tbucketByTenMinutesDurationAsString#[skip:-9.1.99,reason:new grouping function added in 9.2]
5656required_capability: implicit_casting_string_literal_to_temporal_amount
5757required_capability: tbucket
5858
5959FROM sample_data
60- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("10 minutes")
60+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("10 minutes")
6161| SORT min
6262;
6363
6464min:datetime | max:datetime | bucket:datetime
65652023-10-23T12:15:03.360Z | 2023-10-23T12:15:03.360Z | 2023-10-23T12:10:00.000Z
66662023-10-23T12:27:28.948Z | 2023-10-23T12:27:28.948Z | 2023-10-23T12:20:00.000Z
67672023-10-23T13:33:34.937Z | 2023-10-23T13:33:34.937Z | 2023-10-23T13:30:00.000Z
68- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:50:00.000Z
68+ 2023-10-23T13:51:54.732Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:50:00.000Z
6969;
7070
7171docsTBucketByOneHourDuration#[skip:-9.1.99,reason:new grouping function added in 9.2]
7272required_capability: tbucket
7373
7474// tag::docsTBucketByOneHourDuration[]
7575FROM sample_data
76- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 hour)
76+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 hour)
7777| SORT min
7878// end::docsTBucketByOneHourDuration[]
7979;
8080
8181// tag::docsTBucketByOneHourDuration-result[]
8282min:datetime | max:datetime | bucket:datetime
83- 2023-10-23T12:27:28.948Z | 2023-10-23T12:27:28.948Z | 2023-10-23T12:00:00.000Z
84- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:00:00.000Z
83+ 2023-10-23T12:15:03.360Z | 2023-10-23T12:27:28.948Z | 2023-10-23T12:00:00.000Z
84+ 2023-10-23T13:33:34.937Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:00:00.000Z
8585// end::docsTBucketByOneHourDuration-result[]
8686;
8787
@@ -91,114 +91,114 @@ required_capability: tbucket
9191
9292// tag::docsTBucketByOneHourDurationAsString[]
9393FROM sample_data
94- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 hour")
94+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 hour")
9595| SORT min
9696// end::docsTBucketByOneHourDurationAsString[]
9797;
9898
9999// tag::docsTBucketByOneHourDurationAsString-result[]
100100min:datetime | max:datetime | bucket:datetime
101- 2023-10-23T12:27:28.948Z | 2023-10-23T12:27:28.948Z | 2023-10-23T12:00:00.000Z
102- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:00:00.000Z
101+ 2023-10-23T12:15:03.360Z | 2023-10-23T12:27:28.948Z | 2023-10-23T12:00:00.000Z
102+ 2023-10-23T13:33:34.937Z | 2023-10-23T13:55:01.543Z | 2023-10-23T13:00:00.000Z
103103// end::docsTBucketByOneHourDurationAsString-result[]
104104;
105105
106106tbucketByOneDayDuration#[skip:-9.1.99,reason:new grouping function added in 9.2]
107107required_capability: tbucket
108108
109109FROM sample_data
110- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 day)
110+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 day)
111111| SORT min
112112;
113113
114114min:datetime | max:datetime | bucket:datetime
115- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
115+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
116116;
117117
118118tbucketByOneDayDurationAsString#[skip:-9.1.99,reason:new grouping function added in 9.2]
119119required_capability: implicit_casting_string_literal_to_temporal_amount
120120required_capability: tbucket
121121
122122FROM sample_data
123- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 day")
123+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 day")
124124| SORT min
125125;
126126
127127min:datetime | max:datetime | bucket:datetime
128- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
128+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
129129;
130130
131131tbucketByOneWeekDuration#[skip:-9.1.99,reason:new grouping function added in 9.2]
132132required_capability: tbucket
133133
134134FROM sample_data
135- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 week)
135+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 week)
136136| SORT min
137137;
138138
139139min:datetime | max:datetime | bucket:datetime
140- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
140+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
141141;
142142
143143tbucketByOneWeekDurationAsString#[skip:-9.1.99,reason:new grouping function added in 9.2]
144144required_capability: implicit_casting_string_literal_to_temporal_amount
145145required_capability: tbucket
146146
147147FROM sample_data
148- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 week")
148+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 week")
149149| SORT min
150150;
151151
152152min:datetime | max:datetime | bucket:datetime
153- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
153+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-10-23T00:00:00.000Z
154154;
155155
156156tbucketByOneMonthDuration#[skip:-9.1.99,reason:new grouping function added in 9.2]
157157required_capability: tbucket
158158
159159FROM sample_data
160- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 month)
160+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 month)
161161| SORT min
162162;
163163
164164min:datetime | max:datetime | bucket:datetime
165- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-01T00:00:00.000Z
165+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-10-01T00:00:00.000Z
166166;
167167
168168tbucketByOneMonthDurationAsString#[skip:-9.1.99,reason:new grouping function added in 9.2]
169169required_capability: implicit_casting_string_literal_to_temporal_amount
170170required_capability: tbucket
171171
172172FROM sample_data
173- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 month")
173+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 month")
174174| SORT min
175175;
176176
177177min:datetime | max:datetime | bucket:datetime
178- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-10-01T00:00:00.000Z
178+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-10-01T00:00:00.000Z
179179;
180180
181181tbucketByOneYearDuration#[skip:-9.1.99,reason:new grouping function added in 9.2]
182182required_capability: tbucket
183183
184184FROM sample_data
185- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 year)
185+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET(1 year)
186186| SORT min
187187;
188188
189189min:datetime | max:datetime | bucket:datetime
190- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-01-01T00:00:00.000Z
190+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-01-01T00:00:00.000Z
191191;
192192
193193tbucketByOneYearDurationAsString#[skip:-9.1.99,reason:new grouping function added in 9.2]
194194required_capability: implicit_casting_string_literal_to_temporal_amount
195195required_capability: tbucket
196196
197197FROM sample_data
198- | STATS min = MAX (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 year")
198+ | STATS min = MIN (@timestamp), max = MAX(@timestamp) BY bucket = TBUCKET("1 year")
199199| SORT min
200200;
201201
202202min:datetime | max:datetime | bucket:datetime
203- 2023-10-23T13:55:01.543Z | 2023-10-23T13:55:01.543Z | 2023-01-01T00:00:00.000Z
203+ 2023-10-23T12:15:03.360Z | 2023-10-23T13:55:01.543Z | 2023-01-01T00:00:00.000Z
204204;
0 commit comments