homework-jianmu/tests/army/query/function/ans/interval.csv

136 KiB

1taos> select _wstart, _wend, _wduration, count(*) from test.st interval(1m, auto) limit 10;
2 _wstart | _wend | _wduration | count(*) |
3====================================================================================================
4 2020-10-01 00:00:00.000 | 2020-10-01 00:01:00.000 | 60000 | 1 |
5 2020-10-01 00:01:00.000 | 2020-10-01 00:02:00.000 | 60000 | 1 |
6 2020-10-01 00:02:00.000 | 2020-10-01 00:03:00.000 | 60000 | 1 |
7 2020-10-01 00:03:00.000 | 2020-10-01 00:04:00.000 | 60000 | 1 |
8 2020-10-01 00:04:00.000 | 2020-10-01 00:05:00.000 | 60000 | 1 |
9 2020-10-01 00:05:00.000 | 2020-10-01 00:06:00.000 | 60000 | 1 |
10 2020-10-01 00:06:00.000 | 2020-10-01 00:07:00.000 | 60000 | 1 |
11 2020-10-01 00:07:00.000 | 2020-10-01 00:08:00.000 | 60000 | 1 |
12 2020-10-01 00:08:00.000 | 2020-10-01 00:09:00.000 | 60000 | 1 |
13 2020-10-01 00:09:00.000 | 2020-10-01 00:10:00.000 | 60000 | 1 |
14taos> select _wstart, _wend, _wduration, count(*) from test.st where ts < '2020-10-01 00:07:19' interval(1m, auto) limit 10;
15 _wstart | _wend | _wduration | count(*) |
16====================================================================================================
17 2020-10-01 00:00:00.000 | 2020-10-01 00:01:00.000 | 60000 | 1 |
18 2020-10-01 00:01:00.000 | 2020-10-01 00:02:00.000 | 60000 | 1 |
19 2020-10-01 00:02:00.000 | 2020-10-01 00:03:00.000 | 60000 | 1 |
20 2020-10-01 00:03:00.000 | 2020-10-01 00:04:00.000 | 60000 | 1 |
21 2020-10-01 00:04:00.000 | 2020-10-01 00:05:00.000 | 60000 | 1 |
22 2020-10-01 00:05:00.000 | 2020-10-01 00:06:00.000 | 60000 | 1 |
23 2020-10-01 00:06:00.000 | 2020-10-01 00:07:00.000 | 60000 | 1 |
24 2020-10-01 00:07:00.000 | 2020-10-01 00:08:00.000 | 60000 | 1 |
25taos> select _wstart, _wend, _wduration, count(*) from test.st where ts <= '2020-09-30 23:59:59' interval(1h, auto) limit 10;
26taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-10-01 23:45:00' interval(1s, auto) limit 10;
27 _wstart | _wend | _wduration | count(*) |
28====================================================================================================
29 2020-10-01 23:45:00.000 | 2020-10-01 23:45:01.000 | 1000 | 1 |
30taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-10-01 23:45:00' interval(1m, auto) limit 10;
31 _wstart | _wend | _wduration | count(*) |
32====================================================================================================
33 2020-10-01 23:45:00.000 | 2020-10-01 23:46:00.000 | 60000 | 1 |
34taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-01 23:45:00' interval(1h, auto) limit 10;
35 _wstart | _wend | _wduration | count(*) |
36====================================================================================================
37 2020-11-01 23:45:00.000 | 2020-11-02 00:45:00.000 | 3600000 | 1 |
38taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-12-01 23:45:00' interval(1d, auto) limit 10;
39 _wstart | _wend | _wduration | count(*) |
40====================================================================================================
41 2020-12-01 23:45:00.000 | 2020-12-02 23:45:00.000 | 86400000 | 1 |
42taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-01 23:45:00') interval(1s, auto) limit 10;
43 _wstart | _wend | _wduration | count(*) |
44====================================================================================================
45 2020-10-01 23:45:00.000 | 2020-10-01 23:45:01.000 | 1000 | 1 |
46taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-01 23:45:00') interval(1m, auto) limit 10;
47 _wstart | _wend | _wduration | count(*) |
48====================================================================================================
49 2020-10-01 23:45:00.000 | 2020-10-01 23:46:00.000 | 60000 | 1 |
50taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-01 23:45:00') interval(1h, auto) limit 10;
51 _wstart | _wend | _wduration | count(*) |
52====================================================================================================
53 2020-11-01 23:45:00.000 | 2020-11-02 00:45:00.000 | 3600000 | 1 |
54taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-12-01 23:45:00') interval(1d, auto) limit 10;
55 _wstart | _wend | _wduration | count(*) |
56====================================================================================================
57 2020-12-01 23:45:00.000 | 2020-12-02 23:45:00.000 | 86400000 | 1 |
58taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-10-01 23:45:00' interval(1s, auto) sliding(700a) limit 10;
59 _wstart | _wend | _wduration | count(*) |
60====================================================================================================
61 2020-10-01 23:44:59.300 | 2020-10-01 23:45:00.300 | 1000 | 1 |
62 2020-10-01 23:45:00.000 | 2020-10-01 23:45:01.000 | 1000 | 1 |
63taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-10-01 23:45:00' interval(1m, auto) sliding(37s) limit 10;
64 _wstart | _wend | _wduration | count(*) |
65====================================================================================================
66 2020-10-01 23:44:23.000 | 2020-10-01 23:45:23.000 | 60000 | 1 |
67 2020-10-01 23:45:00.000 | 2020-10-01 23:46:00.000 | 60000 | 1 |
68taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-01 23:45:00' interval(1h, auto) sliding(27m) limit 10;
69 _wstart | _wend | _wduration | count(*) |
70====================================================================================================
71 2020-11-01 22:51:00.000 | 2020-11-01 23:51:00.000 | 3600000 | 1 |
72 2020-11-01 23:18:00.000 | 2020-11-02 00:18:00.000 | 3600000 | 1 |
73 2020-11-01 23:45:00.000 | 2020-11-02 00:45:00.000 | 3600000 | 1 |
74taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-12-01 23:45:00' interval(1d, auto) sliding(17h) limit 10;
75 _wstart | _wend | _wduration | count(*) |
76====================================================================================================
77 2020-12-01 06:45:00.000 | 2020-12-02 06:45:00.000 | 86400000 | 1 |
78 2020-12-01 23:45:00.000 | 2020-12-02 23:45:00.000 | 86400000 | 1 |
79taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-01 23:45:00') interval(1s, auto) sliding(700a) limit 10;
80 _wstart | _wend | _wduration | count(*) |
81====================================================================================================
82 2020-10-01 23:44:59.300 | 2020-10-01 23:45:00.300 | 1000 | 1 |
83 2020-10-01 23:45:00.000 | 2020-10-01 23:45:01.000 | 1000 | 1 |
84taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-01 23:45:00') interval(1m, auto) sliding(37s) limit 10;
85 _wstart | _wend | _wduration | count(*) |
86====================================================================================================
87 2020-10-01 23:44:23.000 | 2020-10-01 23:45:23.000 | 60000 | 1 |
88 2020-10-01 23:45:00.000 | 2020-10-01 23:46:00.000 | 60000 | 1 |
89taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-01 23:45:00') interval(1h, auto) sliding(27m) limit 10;
90 _wstart | _wend | _wduration | count(*) |
91====================================================================================================
92 2020-11-01 22:51:00.000 | 2020-11-01 23:51:00.000 | 3600000 | 1 |
93 2020-11-01 23:18:00.000 | 2020-11-02 00:18:00.000 | 3600000 | 1 |
94 2020-11-01 23:45:00.000 | 2020-11-02 00:45:00.000 | 3600000 | 1 |
95taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-12-01 23:45:00') interval(1d, auto) sliding(17h) limit 10;
96 _wstart | _wend | _wduration | count(*) |
97====================================================================================================
98 2020-12-01 06:45:00.000 | 2020-12-02 06:45:00.000 | 86400000 | 1 |
99 2020-12-01 23:45:00.000 | 2020-12-02 23:45:00.000 | 86400000 | 1 |
100taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-12 23:32:43' interval(1n, auto) limit 10;
101taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-12 23:32:00' interval(1n, auto) limit 10;
102 _wstart | _wend | _wduration | count(*) |
103====================================================================================================
104 2020-11-12 23:32:00.000 | 2020-12-12 23:32:00.000 | 2592000000 | 1 |
105taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-12 23:32:43') interval(1n, auto) limit 10;
106taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-12 23:32:00') interval(1n, auto) limit 10;
107 _wstart | _wend | _wduration | count(*) |
108====================================================================================================
109 2020-11-12 23:32:00.000 | 2020-12-12 23:32:00.000 | 2592000000 | 1 |
110taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-12 23:32:43' interval(1n, auto) sliding(9d) limit 10;
111taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-12 23:32:00' interval(1n, auto) sliding(9d) limit 10;
112 _wstart | _wend | _wduration | count(*) |
113====================================================================================================
114 2020-10-16 23:32:00.000 | 2020-11-16 23:32:00.000 | 2678400000 | 1 |
115 2020-10-25 23:32:00.000 | 2020-11-25 23:32:00.000 | 2678400000 | 1 |
116 2020-11-03 23:32:00.000 | 2020-12-03 23:32:00.000 | 2592000000 | 1 |
117 2020-11-12 23:32:00.000 | 2020-12-12 23:32:00.000 | 2592000000 | 1 |
118taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-12 23:32:43') interval(1n, auto) sliding(13d) limit 10;
119taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-12 23:32:00') interval(1n, auto) sliding(13d) limit 10;
120 _wstart | _wend | _wduration | count(*) |
121====================================================================================================
122 2020-10-17 23:32:00.000 | 2020-11-17 23:32:00.000 | 2678400000 | 1 |
123 2020-10-30 23:32:00.000 | 2020-11-30 23:32:00.000 | 2678400000 | 1 |
124 2020-11-12 23:32:00.000 | 2020-12-12 23:32:00.000 | 2592000000 | 1 |
125taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-10-09 01:23:00' interval(1s, auto) limit 10;
126 _wstart | _wend | _wduration | count(*) |
127====================================================================================================
128 2020-10-09 01:23:59.001 | 2020-10-09 01:24:00.001 | 1000 | 1 |
129 2020-10-09 01:24:59.001 | 2020-10-09 01:25:00.001 | 1000 | 1 |
130 2020-10-09 01:25:59.001 | 2020-10-09 01:26:00.001 | 1000 | 1 |
131 2020-10-09 01:26:59.001 | 2020-10-09 01:27:00.001 | 1000 | 1 |
132 2020-10-09 01:27:59.001 | 2020-10-09 01:28:00.001 | 1000 | 1 |
133 2020-10-09 01:28:59.001 | 2020-10-09 01:29:00.001 | 1000 | 1 |
134 2020-10-09 01:29:59.001 | 2020-10-09 01:30:00.001 | 1000 | 1 |
135 2020-10-09 01:30:59.001 | 2020-10-09 01:31:00.001 | 1000 | 1 |
136 2020-10-09 01:31:59.001 | 2020-10-09 01:32:00.001 | 1000 | 1 |
137 2020-10-09 01:32:59.001 | 2020-10-09 01:33:00.001 | 1000 | 1 |
138taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-10-09 01:23:00' interval(1m, auto) limit 10;
139 _wstart | _wend | _wduration | count(*) |
140====================================================================================================
141 2020-10-09 01:23:00.001 | 2020-10-09 01:24:00.001 | 60000 | 1 |
142 2020-10-09 01:24:00.001 | 2020-10-09 01:25:00.001 | 60000 | 1 |
143 2020-10-09 01:25:00.001 | 2020-10-09 01:26:00.001 | 60000 | 1 |
144 2020-10-09 01:26:00.001 | 2020-10-09 01:27:00.001 | 60000 | 1 |
145 2020-10-09 01:27:00.001 | 2020-10-09 01:28:00.001 | 60000 | 1 |
146 2020-10-09 01:28:00.001 | 2020-10-09 01:29:00.001 | 60000 | 1 |
147 2020-10-09 01:29:00.001 | 2020-10-09 01:30:00.001 | 60000 | 1 |
148 2020-10-09 01:30:00.001 | 2020-10-09 01:31:00.001 | 60000 | 1 |
149 2020-10-09 01:31:00.001 | 2020-10-09 01:32:00.001 | 60000 | 1 |
150 2020-10-09 01:32:00.001 | 2020-10-09 01:33:00.001 | 60000 | 1 |
151taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-11-09 01:23:00' interval(1h, auto) limit 10;
152 _wstart | _wend | _wduration | count(*) |
153====================================================================================================
154 2020-11-09 01:23:00.001 | 2020-11-09 02:23:00.001 | 3600000 | 60 |
155 2020-11-09 02:23:00.001 | 2020-11-09 03:23:00.001 | 3600000 | 60 |
156 2020-11-09 03:23:00.001 | 2020-11-09 04:23:00.001 | 3600000 | 60 |
157 2020-11-09 04:23:00.001 | 2020-11-09 05:23:00.001 | 3600000 | 60 |
158 2020-11-09 05:23:00.001 | 2020-11-09 06:23:00.001 | 3600000 | 60 |
159 2020-11-09 06:23:00.001 | 2020-11-09 07:23:00.001 | 3600000 | 60 |
160 2020-11-09 07:23:00.001 | 2020-11-09 08:23:00.001 | 3600000 | 60 |
161 2020-11-09 08:23:00.001 | 2020-11-09 09:23:00.001 | 3600000 | 60 |
162 2020-11-09 09:23:00.001 | 2020-11-09 10:23:00.001 | 3600000 | 60 |
163 2020-11-09 10:23:00.001 | 2020-11-09 11:23:00.001 | 3600000 | 60 |
164taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-09 01:23:00' interval(1d, auto) limit 10;
165 _wstart | _wend | _wduration | count(*) |
166====================================================================================================
167 2020-12-09 01:23:00.001 | 2020-12-10 01:23:00.001 | 86400000 | 556 |
168taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-10-09 01:23:00' interval(1s, auto) limit 10;
169 _wstart | _wend | _wduration | count(*) |
170====================================================================================================
171 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
172 2020-10-09 01:24:00.000 | 2020-10-09 01:24:01.000 | 1000 | 1 |
173 2020-10-09 01:25:00.000 | 2020-10-09 01:25:01.000 | 1000 | 1 |
174 2020-10-09 01:26:00.000 | 2020-10-09 01:26:01.000 | 1000 | 1 |
175 2020-10-09 01:27:00.000 | 2020-10-09 01:27:01.000 | 1000 | 1 |
176 2020-10-09 01:28:00.000 | 2020-10-09 01:28:01.000 | 1000 | 1 |
177 2020-10-09 01:29:00.000 | 2020-10-09 01:29:01.000 | 1000 | 1 |
178 2020-10-09 01:30:00.000 | 2020-10-09 01:30:01.000 | 1000 | 1 |
179 2020-10-09 01:31:00.000 | 2020-10-09 01:31:01.000 | 1000 | 1 |
180 2020-10-09 01:32:00.000 | 2020-10-09 01:32:01.000 | 1000 | 1 |
181taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-10-09 01:23:00' interval(1m, auto) limit 10;
182 _wstart | _wend | _wduration | count(*) |
183====================================================================================================
184 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
185 2020-10-09 01:24:00.000 | 2020-10-09 01:25:00.000 | 60000 | 1 |
186 2020-10-09 01:25:00.000 | 2020-10-09 01:26:00.000 | 60000 | 1 |
187 2020-10-09 01:26:00.000 | 2020-10-09 01:27:00.000 | 60000 | 1 |
188 2020-10-09 01:27:00.000 | 2020-10-09 01:28:00.000 | 60000 | 1 |
189 2020-10-09 01:28:00.000 | 2020-10-09 01:29:00.000 | 60000 | 1 |
190 2020-10-09 01:29:00.000 | 2020-10-09 01:30:00.000 | 60000 | 1 |
191 2020-10-09 01:30:00.000 | 2020-10-09 01:31:00.000 | 60000 | 1 |
192 2020-10-09 01:31:00.000 | 2020-10-09 01:32:00.000 | 60000 | 1 |
193 2020-10-09 01:32:00.000 | 2020-10-09 01:33:00.000 | 60000 | 1 |
194taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-11-09 01:23:00' interval(1h, auto) limit 10;
195 _wstart | _wend | _wduration | count(*) |
196====================================================================================================
197 2020-11-09 01:23:00.000 | 2020-11-09 02:23:00.000 | 3600000 | 60 |
198 2020-11-09 02:23:00.000 | 2020-11-09 03:23:00.000 | 3600000 | 60 |
199 2020-11-09 03:23:00.000 | 2020-11-09 04:23:00.000 | 3600000 | 60 |
200 2020-11-09 04:23:00.000 | 2020-11-09 05:23:00.000 | 3600000 | 60 |
201 2020-11-09 05:23:00.000 | 2020-11-09 06:23:00.000 | 3600000 | 60 |
202 2020-11-09 06:23:00.000 | 2020-11-09 07:23:00.000 | 3600000 | 60 |
203 2020-11-09 07:23:00.000 | 2020-11-09 08:23:00.000 | 3600000 | 60 |
204 2020-11-09 08:23:00.000 | 2020-11-09 09:23:00.000 | 3600000 | 60 |
205 2020-11-09 09:23:00.000 | 2020-11-09 10:23:00.000 | 3600000 | 60 |
206 2020-11-09 10:23:00.000 | 2020-11-09 11:23:00.000 | 3600000 | 60 |
207taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-09 01:23:00' interval(1d, auto) limit 10;
208 _wstart | _wend | _wduration | count(*) |
209====================================================================================================
210 2020-12-09 01:23:00.000 | 2020-12-10 01:23:00.000 | 86400000 | 557 |
211taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1s, auto) limit 10;
212 _wstart | _wend | _wduration | count(*) |
213====================================================================================================
214 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
215 2020-11-09 01:23:00.000 | 2020-11-09 01:23:01.000 | 1000 | 1 |
216 2020-12-09 01:23:00.000 | 2020-12-09 01:23:01.000 | 1000 | 1 |
217taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1m, auto) limit 10;
218 _wstart | _wend | _wduration | count(*) |
219====================================================================================================
220 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
221 2020-11-09 01:23:00.000 | 2020-11-09 01:24:00.000 | 60000 | 1 |
222 2020-12-09 01:23:00.000 | 2020-12-09 01:24:00.000 | 60000 | 1 |
223taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1h, auto) limit 10;
224 _wstart | _wend | _wduration | count(*) |
225====================================================================================================
226 2020-10-09 01:23:00.000 | 2020-10-09 02:23:00.000 | 3600000 | 1 |
227 2020-11-09 01:23:00.000 | 2020-11-09 02:23:00.000 | 3600000 | 1 |
228 2020-12-09 01:23:00.000 | 2020-12-09 02:23:00.000 | 3600000 | 1 |
229taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1d, auto) limit 10;
230 _wstart | _wend | _wduration | count(*) |
231====================================================================================================
232 2020-10-09 01:23:00.000 | 2020-10-10 01:23:00.000 | 86400000 | 1 |
233 2020-11-09 01:23:00.000 | 2020-11-10 01:23:00.000 | 86400000 | 1 |
234 2020-12-09 01:23:00.000 | 2020-12-10 01:23:00.000 | 86400000 | 1 |
235taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-10-09 01:23:00' interval(1s, auto) sliding(700a) limit 10;
236 _wstart | _wend | _wduration | count(*) |
237====================================================================================================
238 2020-10-09 01:23:59.501 | 2020-10-09 01:24:00.501 | 1000 | 1 |
239 2020-10-09 01:24:59.001 | 2020-10-09 01:25:00.001 | 1000 | 1 |
240 2020-10-09 01:24:59.701 | 2020-10-09 01:25:00.701 | 1000 | 1 |
241 2020-10-09 01:25:59.201 | 2020-10-09 01:26:00.201 | 1000 | 1 |
242 2020-10-09 01:25:59.901 | 2020-10-09 01:26:00.901 | 1000 | 1 |
243 2020-10-09 01:26:59.401 | 2020-10-09 01:27:00.401 | 1000 | 1 |
244 2020-10-09 01:27:59.601 | 2020-10-09 01:28:00.601 | 1000 | 1 |
245 2020-10-09 01:28:59.101 | 2020-10-09 01:29:00.101 | 1000 | 1 |
246 2020-10-09 01:28:59.801 | 2020-10-09 01:29:00.801 | 1000 | 1 |
247 2020-10-09 01:29:59.301 | 2020-10-09 01:30:00.301 | 1000 | 1 |
248taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-10-09 01:23:00' interval(1m, auto) sliding(37s) limit 10;
249 _wstart | _wend | _wduration | count(*) |
250====================================================================================================
251 2020-10-09 01:23:00.001 | 2020-10-09 01:24:00.001 | 60000 | 1 |
252 2020-10-09 01:23:37.001 | 2020-10-09 01:24:37.001 | 60000 | 1 |
253 2020-10-09 01:24:14.001 | 2020-10-09 01:25:14.001 | 60000 | 1 |
254 2020-10-09 01:24:51.001 | 2020-10-09 01:25:51.001 | 60000 | 1 |
255 2020-10-09 01:25:28.001 | 2020-10-09 01:26:28.001 | 60000 | 1 |
256 2020-10-09 01:26:05.001 | 2020-10-09 01:27:05.001 | 60000 | 1 |
257 2020-10-09 01:26:42.001 | 2020-10-09 01:27:42.001 | 60000 | 1 |
258 2020-10-09 01:27:19.001 | 2020-10-09 01:28:19.001 | 60000 | 1 |
259 2020-10-09 01:27:56.001 | 2020-10-09 01:28:56.001 | 60000 | 1 |
260 2020-10-09 01:28:33.001 | 2020-10-09 01:29:33.001 | 60000 | 1 |
261taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-11-09 01:23:00' interval(1h, auto) sliding(27m) limit 10;
262 _wstart | _wend | _wduration | count(*) |
263====================================================================================================
264 2020-11-09 00:29:00.001 | 2020-11-09 01:29:00.001 | 3600000 | 6 |
265 2020-11-09 00:56:00.001 | 2020-11-09 01:56:00.001 | 3600000 | 33 |
266 2020-11-09 01:23:00.001 | 2020-11-09 02:23:00.001 | 3600000 | 60 |
267 2020-11-09 01:50:00.001 | 2020-11-09 02:50:00.001 | 3600000 | 60 |
268 2020-11-09 02:17:00.001 | 2020-11-09 03:17:00.001 | 3600000 | 60 |
269 2020-11-09 02:44:00.001 | 2020-11-09 03:44:00.001 | 3600000 | 60 |
270 2020-11-09 03:11:00.001 | 2020-11-09 04:11:00.001 | 3600000 | 60 |
271 2020-11-09 03:38:00.001 | 2020-11-09 04:38:00.001 | 3600000 | 60 |
272 2020-11-09 04:05:00.001 | 2020-11-09 05:05:00.001 | 3600000 | 60 |
273 2020-11-09 04:32:00.001 | 2020-11-09 05:32:00.001 | 3600000 | 60 |
274taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-09 01:23:00' interval(1d, auto) sliding(17h) limit 10;
275 _wstart | _wend | _wduration | count(*) |
276====================================================================================================
277 2020-12-08 08:23:00.001 | 2020-12-09 08:23:00.001 | 86400000 | 420 |
278 2020-12-09 01:23:00.001 | 2020-12-10 01:23:00.001 | 86400000 | 556 |
279taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-10-09 01:23:00' interval(1s, auto) sliding(700a) limit 10;
280 _wstart | _wend | _wduration | count(*) |
281====================================================================================================
282 2020-10-09 01:22:59.300 | 2020-10-09 01:23:00.300 | 1000 | 1 |
283 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
284 2020-10-09 01:23:59.500 | 2020-10-09 01:24:00.500 | 1000 | 1 |
285 2020-10-09 01:24:59.700 | 2020-10-09 01:25:00.700 | 1000 | 1 |
286 2020-10-09 01:25:59.200 | 2020-10-09 01:26:00.200 | 1000 | 1 |
287 2020-10-09 01:25:59.900 | 2020-10-09 01:26:00.900 | 1000 | 1 |
288 2020-10-09 01:26:59.400 | 2020-10-09 01:27:00.400 | 1000 | 1 |
289 2020-10-09 01:27:59.600 | 2020-10-09 01:28:00.600 | 1000 | 1 |
290 2020-10-09 01:28:59.100 | 2020-10-09 01:29:00.100 | 1000 | 1 |
291 2020-10-09 01:28:59.800 | 2020-10-09 01:29:00.800 | 1000 | 1 |
292taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-10-09 01:23:00' interval(1m, auto) sliding(37s) limit 10;
293 _wstart | _wend | _wduration | count(*) |
294====================================================================================================
295 2020-10-09 01:22:23.000 | 2020-10-09 01:23:23.000 | 60000 | 1 |
296 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
297 2020-10-09 01:23:37.000 | 2020-10-09 01:24:37.000 | 60000 | 1 |
298 2020-10-09 01:24:14.000 | 2020-10-09 01:25:14.000 | 60000 | 1 |
299 2020-10-09 01:24:51.000 | 2020-10-09 01:25:51.000 | 60000 | 1 |
300 2020-10-09 01:25:28.000 | 2020-10-09 01:26:28.000 | 60000 | 1 |
301 2020-10-09 01:26:05.000 | 2020-10-09 01:27:05.000 | 60000 | 1 |
302 2020-10-09 01:26:42.000 | 2020-10-09 01:27:42.000 | 60000 | 1 |
303 2020-10-09 01:27:19.000 | 2020-10-09 01:28:19.000 | 60000 | 1 |
304 2020-10-09 01:27:56.000 | 2020-10-09 01:28:56.000 | 60000 | 1 |
305taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-11-09 01:23:00' interval(1h, auto) sliding(27m) limit 10;
306 _wstart | _wend | _wduration | count(*) |
307====================================================================================================
308 2020-11-09 00:29:00.000 | 2020-11-09 01:29:00.000 | 3600000 | 6 |
309 2020-11-09 00:56:00.000 | 2020-11-09 01:56:00.000 | 3600000 | 33 |
310 2020-11-09 01:23:00.000 | 2020-11-09 02:23:00.000 | 3600000 | 60 |
311 2020-11-09 01:50:00.000 | 2020-11-09 02:50:00.000 | 3600000 | 60 |
312 2020-11-09 02:17:00.000 | 2020-11-09 03:17:00.000 | 3600000 | 60 |
313 2020-11-09 02:44:00.000 | 2020-11-09 03:44:00.000 | 3600000 | 60 |
314 2020-11-09 03:11:00.000 | 2020-11-09 04:11:00.000 | 3600000 | 60 |
315 2020-11-09 03:38:00.000 | 2020-11-09 04:38:00.000 | 3600000 | 60 |
316 2020-11-09 04:05:00.000 | 2020-11-09 05:05:00.000 | 3600000 | 60 |
317 2020-11-09 04:32:00.000 | 2020-11-09 05:32:00.000 | 3600000 | 60 |
318taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-09 01:23:00' interval(1d, auto) sliding(17h) limit 10;
319 _wstart | _wend | _wduration | count(*) |
320====================================================================================================
321 2020-12-08 08:23:00.000 | 2020-12-09 08:23:00.000 | 86400000 | 420 |
322 2020-12-09 01:23:00.000 | 2020-12-10 01:23:00.000 | 86400000 | 557 |
323taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1s, auto) sliding(700a) limit 10;
324 _wstart | _wend | _wduration | count(*) |
325====================================================================================================
326 2020-10-09 01:22:59.300 | 2020-10-09 01:23:00.300 | 1000 | 1 |
327 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
328 2020-11-09 01:22:59.500 | 2020-11-09 01:23:00.500 | 1000 | 1 |
329 2020-12-09 01:22:59.400 | 2020-12-09 01:23:00.400 | 1000 | 1 |
330taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1m, auto) sliding(37s) limit 10;
331 _wstart | _wend | _wduration | count(*) |
332====================================================================================================
333 2020-10-09 01:22:23.000 | 2020-10-09 01:23:23.000 | 60000 | 1 |
334 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
335 2020-11-09 01:22:16.000 | 2020-11-09 01:23:16.000 | 60000 | 1 |
336 2020-11-09 01:22:53.000 | 2020-11-09 01:23:53.000 | 60000 | 1 |
337 2020-12-09 01:22:14.000 | 2020-12-09 01:23:14.000 | 60000 | 1 |
338 2020-12-09 01:22:51.000 | 2020-12-09 01:23:51.000 | 60000 | 1 |
339taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1h, auto) sliding(27m) limit 10;
340 _wstart | _wend | _wduration | count(*) |
341====================================================================================================
342 2020-10-09 00:29:00.000 | 2020-10-09 01:29:00.000 | 3600000 | 1 |
343 2020-10-09 00:56:00.000 | 2020-10-09 01:56:00.000 | 3600000 | 1 |
344 2020-10-09 01:23:00.000 | 2020-10-09 02:23:00.000 | 3600000 | 1 |
345 2020-11-09 00:47:00.000 | 2020-11-09 01:47:00.000 | 3600000 | 1 |
346 2020-11-09 01:14:00.000 | 2020-11-09 02:14:00.000 | 3600000 | 1 |
347 2020-12-09 00:47:00.000 | 2020-12-09 01:47:00.000 | 3600000 | 1 |
348 2020-12-09 01:14:00.000 | 2020-12-09 02:14:00.000 | 3600000 | 1 |
349taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1d, auto) sliding(17h) limit 10;
350 _wstart | _wend | _wduration | count(*) |
351====================================================================================================
352 2020-10-08 08:23:00.000 | 2020-10-09 08:23:00.000 | 86400000 | 1 |
353 2020-10-09 01:23:00.000 | 2020-10-10 01:23:00.000 | 86400000 | 1 |
354 2020-11-08 12:23:00.000 | 2020-11-09 12:23:00.000 | 86400000 | 1 |
355 2020-12-08 06:23:00.000 | 2020-12-09 06:23:00.000 | 86400000 | 1 |
356 2020-12-08 23:23:00.000 | 2020-12-09 23:23:00.000 | 86400000 | 1 |
357taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-10-09 01:23:00' interval(1n, auto) limit 10;
358 _wstart | _wend | _wduration | count(*) |
359====================================================================================================
360 2020-10-09 01:23:00.001 | 2020-11-09 01:23:00.001 | 2678400000 | 44640 |
361 2020-11-09 01:23:00.001 | 2020-12-09 01:23:00.001 | 2592000000 | 43200 |
362 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
363taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-11-09 01:23:00' interval(1n, auto) limit 10;
364 _wstart | _wend | _wduration | count(*) |
365====================================================================================================
366 2020-11-09 01:23:00.001 | 2020-12-09 01:23:00.001 | 2592000000 | 43200 |
367 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
368taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-09 01:23:00' interval(1n, auto) limit 10;
369 _wstart | _wend | _wduration | count(*) |
370====================================================================================================
371 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
372taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-19 01:23:00' interval(1n, auto) limit 10;
373taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-10-09 01:23:00' interval(1n, auto) limit 10;
374 _wstart | _wend | _wduration | count(*) |
375====================================================================================================
376 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 44640 |
377 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 |
378 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
379taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-11-09 01:23:00' interval(1n, auto) limit 10;
380 _wstart | _wend | _wduration | count(*) |
381====================================================================================================
382 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 |
383 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
384taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-09 01:23:00' interval(1n, auto) limit 10;
385 _wstart | _wend | _wduration | count(*) |
386====================================================================================================
387 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
388taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-19 01:23:00' interval(1n, auto) limit 10;
389taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1n, auto) limit 10;
390 _wstart | _wend | _wduration | count(*) |
391====================================================================================================
392 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 1 |
393 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 1 |
394 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 1 |
395taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-10-09 01:23:00' interval(1n, auto) sliding(9d) limit 10;
396 _wstart | _wend | _wduration | count(*) |
397====================================================================================================
398 2020-09-12 01:23:00.001 | 2020-10-12 01:23:00.001 | 2592000000 | 4320 |
399 2020-09-21 01:23:00.001 | 2020-10-21 01:23:00.001 | 2592000000 | 17280 |
400 2020-09-30 01:23:00.001 | 2020-10-30 01:23:00.001 | 2592000000 | 30240 |
401 2020-10-09 01:23:00.001 | 2020-11-09 01:23:00.001 | 2678400000 | 44640 |
402 2020-10-18 01:23:00.001 | 2020-11-18 01:23:00.001 | 2678400000 | 44640 |
403 2020-10-27 01:23:00.001 | 2020-11-27 01:23:00.001 | 2678400000 | 44640 |
404 2020-11-05 01:23:00.001 | 2020-12-05 01:23:00.001 | 2592000000 | 43200 |
405 2020-11-14 01:23:00.001 | 2020-12-14 01:23:00.001 | 2592000000 | 36556 |
406 2020-11-23 01:23:00.001 | 2020-12-23 01:23:00.001 | 2592000000 | 23596 |
407 2020-12-02 01:23:00.001 | 2021-01-02 01:23:00.001 | 2678400000 | 10636 |
408taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-11-09 01:23:00' interval(1n, auto) sliding(9d) limit 10;
409 _wstart | _wend | _wduration | count(*) |
410====================================================================================================
411 2020-10-13 01:23:00.001 | 2020-11-13 01:23:00.001 | 2678400000 | 5760 |
412 2020-10-22 01:23:00.001 | 2020-11-22 01:23:00.001 | 2678400000 | 18720 |
413 2020-10-31 01:23:00.001 | 2020-11-30 01:23:00.001 | 2592000000 | 30240 |
414 2020-11-09 01:23:00.001 | 2020-12-09 01:23:00.001 | 2592000000 | 43200 |
415 2020-11-18 01:23:00.001 | 2020-12-18 01:23:00.001 | 2592000000 | 30796 |
416 2020-11-27 01:23:00.001 | 2020-12-27 01:23:00.001 | 2592000000 | 17836 |
417 2020-12-06 01:23:00.001 | 2021-01-06 01:23:00.001 | 2678400000 | 4876 |
418taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-09 01:23:00' interval(1n, auto) sliding(9d) limit 10;
419 _wstart | _wend | _wduration | count(*) |
420====================================================================================================
421 2020-11-12 01:23:00.001 | 2020-12-12 01:23:00.001 | 2592000000 | 556 |
422 2020-11-21 01:23:00.001 | 2020-12-21 01:23:00.001 | 2592000000 | 556 |
423 2020-11-30 01:23:00.001 | 2020-12-30 01:23:00.001 | 2592000000 | 556 |
424 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
425taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-19 01:23:00' interval(1n, auto) sliding(9d) limit 10;
426taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-10-09 01:23:00' interval(1n, auto) sliding(13d) limit 10;
427 _wstart | _wend | _wduration | count(*) |
428====================================================================================================
429 2020-09-13 01:23:00.000 | 2020-10-13 01:23:00.000 | 2592000000 | 5760 |
430 2020-09-26 01:23:00.000 | 2020-10-26 01:23:00.000 | 2592000000 | 24480 |
431 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 44640 |
432 2020-10-22 01:23:00.000 | 2020-11-22 01:23:00.000 | 2678400000 | 44640 |
433 2020-11-04 01:23:00.000 | 2020-12-04 01:23:00.000 | 2592000000 | 43200 |
434 2020-11-17 01:23:00.000 | 2020-12-17 01:23:00.000 | 2592000000 | 32237 |
435 2020-11-30 01:23:00.000 | 2020-12-30 01:23:00.000 | 2592000000 | 13517 |
436taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-11-09 01:23:00' interval(1n, auto) sliding(13d) limit 10;
437 _wstart | _wend | _wduration | count(*) |
438====================================================================================================
439 2020-10-14 01:23:00.000 | 2020-11-14 01:23:00.000 | 2678400000 | 7200 |
440 2020-10-27 01:23:00.000 | 2020-11-27 01:23:00.000 | 2678400000 | 25920 |
441 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 |
442 2020-11-22 01:23:00.000 | 2020-12-22 01:23:00.000 | 2592000000 | 25037 |
443 2020-12-05 01:23:00.000 | 2021-01-05 01:23:00.000 | 2678400000 | 6317 |
444taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-09 01:23:00' interval(1n, auto) sliding(13d) limit 10;
445 _wstart | _wend | _wduration | count(*) |
446====================================================================================================
447 2020-11-13 01:23:00.000 | 2020-12-13 01:23:00.000 | 2592000000 | 557 |
448 2020-11-26 01:23:00.000 | 2020-12-26 01:23:00.000 | 2592000000 | 557 |
449 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
450taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-19 01:23:00' interval(1n, auto) sliding(13d) limit 10;
451taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1n, auto) sliding(9d) limit 10;
452 _wstart | _wend | _wduration | count(*) |
453====================================================================================================
454 2020-09-12 01:23:00.000 | 2020-10-12 01:23:00.000 | 2592000000 | 1 |
455 2020-09-21 01:23:00.000 | 2020-10-21 01:23:00.000 | 2592000000 | 1 |
456 2020-09-30 01:23:00.000 | 2020-10-30 01:23:00.000 | 2592000000 | 1 |
457 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 1 |
458 2020-10-18 01:23:00.000 | 2020-11-18 01:23:00.000 | 2678400000 | 1 |
459 2020-10-27 01:23:00.000 | 2020-11-27 01:23:00.000 | 2678400000 | 1 |
460 2020-11-05 01:23:00.000 | 2020-12-05 01:23:00.000 | 2592000000 | 1 |
461 2020-11-14 01:23:00.000 | 2020-12-14 01:23:00.000 | 2592000000 | 1 |
462 2020-11-23 01:23:00.000 | 2020-12-23 01:23:00.000 | 2592000000 | 1 |
463 2020-12-02 01:23:00.000 | 2021-01-02 01:23:00.000 | 2678400000 | 1 |
464taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1n, auto) sliding(13d) limit 10;
465 _wstart | _wend | _wduration | count(*) |
466====================================================================================================
467 2020-09-13 01:23:00.000 | 2020-10-13 01:23:00.000 | 2592000000 | 1 |
468 2020-09-26 01:23:00.000 | 2020-10-26 01:23:00.000 | 2592000000 | 1 |
469 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 1 |
470 2020-10-22 01:23:00.000 | 2020-11-22 01:23:00.000 | 2678400000 | 1 |
471 2020-11-04 01:23:00.000 | 2020-12-04 01:23:00.000 | 2592000000 | 1 |
472 2020-11-17 01:23:00.000 | 2020-12-17 01:23:00.000 | 2592000000 | 1 |
473 2020-11-30 01:23:00.000 | 2020-12-30 01:23:00.000 | 2592000000 | 1 |
474taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-01 23:45:00' as timestamp) + 1d interval(1s, auto) limit 10;
475 _wstart | _wend | _wduration | count(*) |
476====================================================================================================
477 2020-10-02 23:45:00.000 | 2020-10-02 23:45:01.000 | 1000 | 1 |
478taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-01 23:45:00' as timestamp) + 1d interval(1m, auto) limit 10;
479 _wstart | _wend | _wduration | count(*) |
480====================================================================================================
481 2020-10-02 23:45:00.000 | 2020-10-02 23:46:00.000 | 60000 | 1 |
482taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-11-01 23:45:00' as timestamp) + 1d interval(1h, auto) limit 10;
483 _wstart | _wend | _wduration | count(*) |
484====================================================================================================
485 2020-11-02 23:45:00.000 | 2020-11-03 00:45:00.000 | 3600000 | 1 |
486taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-12-01 23:45:00' as timestamp) + 1d interval(1d, auto) limit 10;
487 _wstart | _wend | _wduration | count(*) |
488====================================================================================================
489 2020-12-02 23:45:00.000 | 2020-12-03 23:45:00.000 | 86400000 | 1 |
490taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-01 23:45:00' as timestamp) + 1d interval(1s, auto) sliding(700a) limit 10;
491 _wstart | _wend | _wduration | count(*) |
492====================================================================================================
493 2020-10-02 23:44:59.300 | 2020-10-02 23:45:00.300 | 1000 | 1 |
494 2020-10-02 23:45:00.000 | 2020-10-02 23:45:01.000 | 1000 | 1 |
495taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-01 23:45:00' as timestamp) + 1d interval(1m, auto) sliding(37s) limit 10;
496 _wstart | _wend | _wduration | count(*) |
497====================================================================================================
498 2020-10-02 23:44:23.000 | 2020-10-02 23:45:23.000 | 60000 | 1 |
499 2020-10-02 23:45:00.000 | 2020-10-02 23:46:00.000 | 60000 | 1 |
500taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-11-01 23:45:00' as timestamp) + 1d interval(1h, auto) sliding(27m) limit 10;
501 _wstart | _wend | _wduration | count(*) |
502====================================================================================================
503 2020-11-02 22:51:00.000 | 2020-11-02 23:51:00.000 | 3600000 | 1 |
504 2020-11-02 23:18:00.000 | 2020-11-03 00:18:00.000 | 3600000 | 1 |
505 2020-11-02 23:45:00.000 | 2020-11-03 00:45:00.000 | 3600000 | 1 |
506taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-12-01 23:45:00' as timestamp) + 1d interval(1d, auto) sliding(17h) limit 10;
507 _wstart | _wend | _wduration | count(*) |
508====================================================================================================
509 2020-12-02 06:45:00.000 | 2020-12-03 06:45:00.000 | 86400000 | 1 |
510 2020-12-02 23:45:00.000 | 2020-12-03 23:45:00.000 | 86400000 | 1 |
511taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-11-12 23:32:43' as timestamp) + 1d interval(1n, auto) limit 10;
512taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-11-12 23:32:00' as timestamp) + 1d interval(1n, auto) limit 10;
513 _wstart | _wend | _wduration | count(*) |
514====================================================================================================
515 2020-11-13 23:32:00.000 | 2020-12-13 23:32:00.000 | 2592000000 | 1 |
516taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-11-12 23:32:00' as timestamp) + 1d interval(1n, auto) sliding(9d) limit 10;
517 _wstart | _wend | _wduration | count(*) |
518====================================================================================================
519 2020-10-17 23:32:00.000 | 2020-11-17 23:32:00.000 | 2678400000 | 1 |
520 2020-10-26 23:32:00.000 | 2020-11-26 23:32:00.000 | 2678400000 | 1 |
521 2020-11-04 23:32:00.000 | 2020-12-04 23:32:00.000 | 2592000000 | 1 |
522 2020-11-13 23:32:00.000 | 2020-12-13 23:32:00.000 | 2592000000 | 1 |
523taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-11-12 23:32:00' as timestamp) + 1d interval(1n, auto) sliding(13d) limit 10;
524 _wstart | _wend | _wduration | count(*) |
525====================================================================================================
526 2020-10-18 23:32:00.000 | 2020-11-18 23:32:00.000 | 2678400000 | 1 |
527 2020-10-31 23:32:00.000 | 2020-11-30 23:32:00.000 | 2592000000 | 1 |
528 2020-11-13 23:32:00.000 | 2020-12-13 23:32:00.000 | 2592000000 | 1 |
529taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1s, auto) limit 10;
530 _wstart | _wend | _wduration | count(*) |
531====================================================================================================
532 2020-10-09 01:23:59.001 | 2020-10-09 01:24:00.001 | 1000 | 1 |
533 2020-10-09 01:24:59.001 | 2020-10-09 01:25:00.001 | 1000 | 1 |
534 2020-10-09 01:25:59.001 | 2020-10-09 01:26:00.001 | 1000 | 1 |
535 2020-10-09 01:26:59.001 | 2020-10-09 01:27:00.001 | 1000 | 1 |
536 2020-10-09 01:27:59.001 | 2020-10-09 01:28:00.001 | 1000 | 1 |
537 2020-10-09 01:28:59.001 | 2020-10-09 01:29:00.001 | 1000 | 1 |
538 2020-10-09 01:29:59.001 | 2020-10-09 01:30:00.001 | 1000 | 1 |
539 2020-10-09 01:30:59.001 | 2020-10-09 01:31:00.001 | 1000 | 1 |
540 2020-10-09 01:31:59.001 | 2020-10-09 01:32:00.001 | 1000 | 1 |
541 2020-10-09 01:32:59.001 | 2020-10-09 01:33:00.001 | 1000 | 1 |
542taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1m, auto) limit 10;
543 _wstart | _wend | _wduration | count(*) |
544====================================================================================================
545 2020-10-09 01:23:00.001 | 2020-10-09 01:24:00.001 | 60000 | 1 |
546 2020-10-09 01:24:00.001 | 2020-10-09 01:25:00.001 | 60000 | 1 |
547 2020-10-09 01:25:00.001 | 2020-10-09 01:26:00.001 | 60000 | 1 |
548 2020-10-09 01:26:00.001 | 2020-10-09 01:27:00.001 | 60000 | 1 |
549 2020-10-09 01:27:00.001 | 2020-10-09 01:28:00.001 | 60000 | 1 |
550 2020-10-09 01:28:00.001 | 2020-10-09 01:29:00.001 | 60000 | 1 |
551 2020-10-09 01:29:00.001 | 2020-10-09 01:30:00.001 | 60000 | 1 |
552 2020-10-09 01:30:00.001 | 2020-10-09 01:31:00.001 | 60000 | 1 |
553 2020-10-09 01:31:00.001 | 2020-10-09 01:32:00.001 | 60000 | 1 |
554 2020-10-09 01:32:00.001 | 2020-10-09 01:33:00.001 | 60000 | 1 |
555taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1h, auto) limit 10;
556 _wstart | _wend | _wduration | count(*) |
557====================================================================================================
558 2020-11-09 01:23:00.001 | 2020-11-09 02:23:00.001 | 3600000 | 60 |
559 2020-11-09 02:23:00.001 | 2020-11-09 03:23:00.001 | 3600000 | 60 |
560 2020-11-09 03:23:00.001 | 2020-11-09 04:23:00.001 | 3600000 | 60 |
561 2020-11-09 04:23:00.001 | 2020-11-09 05:23:00.001 | 3600000 | 60 |
562 2020-11-09 05:23:00.001 | 2020-11-09 06:23:00.001 | 3600000 | 60 |
563 2020-11-09 06:23:00.001 | 2020-11-09 07:23:00.001 | 3600000 | 60 |
564 2020-11-09 07:23:00.001 | 2020-11-09 08:23:00.001 | 3600000 | 60 |
565 2020-11-09 08:23:00.001 | 2020-11-09 09:23:00.001 | 3600000 | 60 |
566 2020-11-09 09:23:00.001 | 2020-11-09 10:23:00.001 | 3600000 | 60 |
567 2020-11-09 10:23:00.001 | 2020-11-09 11:23:00.001 | 3600000 | 60 |
568taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1d, auto) limit 10;
569 _wstart | _wend | _wduration | count(*) |
570====================================================================================================
571 2020-12-09 01:23:00.001 | 2020-12-10 01:23:00.001 | 86400000 | 556 |
572taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1s, auto) limit 10;
573 _wstart | _wend | _wduration | count(*) |
574====================================================================================================
575 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
576 2020-10-09 01:24:00.000 | 2020-10-09 01:24:01.000 | 1000 | 1 |
577 2020-10-09 01:25:00.000 | 2020-10-09 01:25:01.000 | 1000 | 1 |
578 2020-10-09 01:26:00.000 | 2020-10-09 01:26:01.000 | 1000 | 1 |
579 2020-10-09 01:27:00.000 | 2020-10-09 01:27:01.000 | 1000 | 1 |
580 2020-10-09 01:28:00.000 | 2020-10-09 01:28:01.000 | 1000 | 1 |
581 2020-10-09 01:29:00.000 | 2020-10-09 01:29:01.000 | 1000 | 1 |
582 2020-10-09 01:30:00.000 | 2020-10-09 01:30:01.000 | 1000 | 1 |
583 2020-10-09 01:31:00.000 | 2020-10-09 01:31:01.000 | 1000 | 1 |
584 2020-10-09 01:32:00.000 | 2020-10-09 01:32:01.000 | 1000 | 1 |
585taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1m, auto) limit 10;
586 _wstart | _wend | _wduration | count(*) |
587====================================================================================================
588 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
589 2020-10-09 01:24:00.000 | 2020-10-09 01:25:00.000 | 60000 | 1 |
590 2020-10-09 01:25:00.000 | 2020-10-09 01:26:00.000 | 60000 | 1 |
591 2020-10-09 01:26:00.000 | 2020-10-09 01:27:00.000 | 60000 | 1 |
592 2020-10-09 01:27:00.000 | 2020-10-09 01:28:00.000 | 60000 | 1 |
593 2020-10-09 01:28:00.000 | 2020-10-09 01:29:00.000 | 60000 | 1 |
594 2020-10-09 01:29:00.000 | 2020-10-09 01:30:00.000 | 60000 | 1 |
595 2020-10-09 01:30:00.000 | 2020-10-09 01:31:00.000 | 60000 | 1 |
596 2020-10-09 01:31:00.000 | 2020-10-09 01:32:00.000 | 60000 | 1 |
597 2020-10-09 01:32:00.000 | 2020-10-09 01:33:00.000 | 60000 | 1 |
598taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1h, auto) limit 10;
599 _wstart | _wend | _wduration | count(*) |
600====================================================================================================
601 2020-11-09 01:23:00.000 | 2020-11-09 02:23:00.000 | 3600000 | 60 |
602 2020-11-09 02:23:00.000 | 2020-11-09 03:23:00.000 | 3600000 | 60 |
603 2020-11-09 03:23:00.000 | 2020-11-09 04:23:00.000 | 3600000 | 60 |
604 2020-11-09 04:23:00.000 | 2020-11-09 05:23:00.000 | 3600000 | 60 |
605 2020-11-09 05:23:00.000 | 2020-11-09 06:23:00.000 | 3600000 | 60 |
606 2020-11-09 06:23:00.000 | 2020-11-09 07:23:00.000 | 3600000 | 60 |
607 2020-11-09 07:23:00.000 | 2020-11-09 08:23:00.000 | 3600000 | 60 |
608 2020-11-09 08:23:00.000 | 2020-11-09 09:23:00.000 | 3600000 | 60 |
609 2020-11-09 09:23:00.000 | 2020-11-09 10:23:00.000 | 3600000 | 60 |
610 2020-11-09 10:23:00.000 | 2020-11-09 11:23:00.000 | 3600000 | 60 |
611taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1d, auto) limit 10;
612 _wstart | _wend | _wduration | count(*) |
613====================================================================================================
614 2020-12-09 01:23:00.000 | 2020-12-10 01:23:00.000 | 86400000 | 557 |
615taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1s, auto) sliding(700a) limit 10;
616 _wstart | _wend | _wduration | count(*) |
617====================================================================================================
618 2020-10-09 01:23:59.501 | 2020-10-09 01:24:00.501 | 1000 | 1 |
619 2020-10-09 01:24:59.001 | 2020-10-09 01:25:00.001 | 1000 | 1 |
620 2020-10-09 01:24:59.701 | 2020-10-09 01:25:00.701 | 1000 | 1 |
621 2020-10-09 01:25:59.201 | 2020-10-09 01:26:00.201 | 1000 | 1 |
622 2020-10-09 01:25:59.901 | 2020-10-09 01:26:00.901 | 1000 | 1 |
623 2020-10-09 01:26:59.401 | 2020-10-09 01:27:00.401 | 1000 | 1 |
624 2020-10-09 01:27:59.601 | 2020-10-09 01:28:00.601 | 1000 | 1 |
625 2020-10-09 01:28:59.101 | 2020-10-09 01:29:00.101 | 1000 | 1 |
626 2020-10-09 01:28:59.801 | 2020-10-09 01:29:00.801 | 1000 | 1 |
627 2020-10-09 01:29:59.301 | 2020-10-09 01:30:00.301 | 1000 | 1 |
628taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1m, auto) sliding(37s) limit 10;
629 _wstart | _wend | _wduration | count(*) |
630====================================================================================================
631 2020-10-09 01:23:00.001 | 2020-10-09 01:24:00.001 | 60000 | 1 |
632 2020-10-09 01:23:37.001 | 2020-10-09 01:24:37.001 | 60000 | 1 |
633 2020-10-09 01:24:14.001 | 2020-10-09 01:25:14.001 | 60000 | 1 |
634 2020-10-09 01:24:51.001 | 2020-10-09 01:25:51.001 | 60000 | 1 |
635 2020-10-09 01:25:28.001 | 2020-10-09 01:26:28.001 | 60000 | 1 |
636 2020-10-09 01:26:05.001 | 2020-10-09 01:27:05.001 | 60000 | 1 |
637 2020-10-09 01:26:42.001 | 2020-10-09 01:27:42.001 | 60000 | 1 |
638 2020-10-09 01:27:19.001 | 2020-10-09 01:28:19.001 | 60000 | 1 |
639 2020-10-09 01:27:56.001 | 2020-10-09 01:28:56.001 | 60000 | 1 |
640 2020-10-09 01:28:33.001 | 2020-10-09 01:29:33.001 | 60000 | 1 |
641taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1h, auto) sliding(27m) limit 10;
642 _wstart | _wend | _wduration | count(*) |
643====================================================================================================
644 2020-11-09 00:29:00.001 | 2020-11-09 01:29:00.001 | 3600000 | 6 |
645 2020-11-09 00:56:00.001 | 2020-11-09 01:56:00.001 | 3600000 | 33 |
646 2020-11-09 01:23:00.001 | 2020-11-09 02:23:00.001 | 3600000 | 60 |
647 2020-11-09 01:50:00.001 | 2020-11-09 02:50:00.001 | 3600000 | 60 |
648 2020-11-09 02:17:00.001 | 2020-11-09 03:17:00.001 | 3600000 | 60 |
649 2020-11-09 02:44:00.001 | 2020-11-09 03:44:00.001 | 3600000 | 60 |
650 2020-11-09 03:11:00.001 | 2020-11-09 04:11:00.001 | 3600000 | 60 |
651 2020-11-09 03:38:00.001 | 2020-11-09 04:38:00.001 | 3600000 | 60 |
652 2020-11-09 04:05:00.001 | 2020-11-09 05:05:00.001 | 3600000 | 60 |
653 2020-11-09 04:32:00.001 | 2020-11-09 05:32:00.001 | 3600000 | 60 |
654taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1d, auto) sliding(17h) limit 10;
655 _wstart | _wend | _wduration | count(*) |
656====================================================================================================
657 2020-12-08 08:23:00.001 | 2020-12-09 08:23:00.001 | 86400000 | 420 |
658 2020-12-09 01:23:00.001 | 2020-12-10 01:23:00.001 | 86400000 | 556 |
659taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1s, auto) sliding(700a) limit 10;
660 _wstart | _wend | _wduration | count(*) |
661====================================================================================================
662 2020-10-09 01:22:59.300 | 2020-10-09 01:23:00.300 | 1000 | 1 |
663 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
664 2020-10-09 01:23:59.500 | 2020-10-09 01:24:00.500 | 1000 | 1 |
665 2020-10-09 01:24:59.700 | 2020-10-09 01:25:00.700 | 1000 | 1 |
666 2020-10-09 01:25:59.200 | 2020-10-09 01:26:00.200 | 1000 | 1 |
667 2020-10-09 01:25:59.900 | 2020-10-09 01:26:00.900 | 1000 | 1 |
668 2020-10-09 01:26:59.400 | 2020-10-09 01:27:00.400 | 1000 | 1 |
669 2020-10-09 01:27:59.600 | 2020-10-09 01:28:00.600 | 1000 | 1 |
670 2020-10-09 01:28:59.100 | 2020-10-09 01:29:00.100 | 1000 | 1 |
671 2020-10-09 01:28:59.800 | 2020-10-09 01:29:00.800 | 1000 | 1 |
672taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1m, auto) sliding(37s) limit 10;
673 _wstart | _wend | _wduration | count(*) |
674====================================================================================================
675 2020-10-09 01:22:23.000 | 2020-10-09 01:23:23.000 | 60000 | 1 |
676 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
677 2020-10-09 01:23:37.000 | 2020-10-09 01:24:37.000 | 60000 | 1 |
678 2020-10-09 01:24:14.000 | 2020-10-09 01:25:14.000 | 60000 | 1 |
679 2020-10-09 01:24:51.000 | 2020-10-09 01:25:51.000 | 60000 | 1 |
680 2020-10-09 01:25:28.000 | 2020-10-09 01:26:28.000 | 60000 | 1 |
681 2020-10-09 01:26:05.000 | 2020-10-09 01:27:05.000 | 60000 | 1 |
682 2020-10-09 01:26:42.000 | 2020-10-09 01:27:42.000 | 60000 | 1 |
683 2020-10-09 01:27:19.000 | 2020-10-09 01:28:19.000 | 60000 | 1 |
684 2020-10-09 01:27:56.000 | 2020-10-09 01:28:56.000 | 60000 | 1 |
685taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1h, auto) sliding(27m) limit 10;
686 _wstart | _wend | _wduration | count(*) |
687====================================================================================================
688 2020-11-09 00:29:00.000 | 2020-11-09 01:29:00.000 | 3600000 | 6 |
689 2020-11-09 00:56:00.000 | 2020-11-09 01:56:00.000 | 3600000 | 33 |
690 2020-11-09 01:23:00.000 | 2020-11-09 02:23:00.000 | 3600000 | 60 |
691 2020-11-09 01:50:00.000 | 2020-11-09 02:50:00.000 | 3600000 | 60 |
692 2020-11-09 02:17:00.000 | 2020-11-09 03:17:00.000 | 3600000 | 60 |
693 2020-11-09 02:44:00.000 | 2020-11-09 03:44:00.000 | 3600000 | 60 |
694 2020-11-09 03:11:00.000 | 2020-11-09 04:11:00.000 | 3600000 | 60 |
695 2020-11-09 03:38:00.000 | 2020-11-09 04:38:00.000 | 3600000 | 60 |
696 2020-11-09 04:05:00.000 | 2020-11-09 05:05:00.000 | 3600000 | 60 |
697 2020-11-09 04:32:00.000 | 2020-11-09 05:32:00.000 | 3600000 | 60 |
698taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1d, auto) sliding(17h) limit 10;
699 _wstart | _wend | _wduration | count(*) |
700====================================================================================================
701 2020-12-08 08:23:00.000 | 2020-12-09 08:23:00.000 | 86400000 | 420 |
702 2020-12-09 01:23:00.000 | 2020-12-10 01:23:00.000 | 86400000 | 557 |
703taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
704 _wstart | _wend | _wduration | count(*) |
705====================================================================================================
706 2020-10-09 01:23:00.001 | 2020-11-09 01:23:00.001 | 2678400000 | 44640 |
707 2020-11-09 01:23:00.001 | 2020-12-09 01:23:00.001 | 2592000000 | 43200 |
708 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
709taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
710 _wstart | _wend | _wduration | count(*) |
711====================================================================================================
712 2020-11-09 01:23:00.001 | 2020-12-09 01:23:00.001 | 2592000000 | 43200 |
713 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
714taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
715 _wstart | _wend | _wduration | count(*) |
716====================================================================================================
717 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
718taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-12-18 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
719taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
720 _wstart | _wend | _wduration | count(*) |
721====================================================================================================
722 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 44640 |
723 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 |
724 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
725taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
726 _wstart | _wend | _wduration | count(*) |
727====================================================================================================
728 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 |
729 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
730taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
731 _wstart | _wend | _wduration | count(*) |
732====================================================================================================
733 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
734taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-12-18 01:23:00' as timestamp) + 1d interval(1n, auto) limit 10;
735taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(9d) limit 10;
736 _wstart | _wend | _wduration | count(*) |
737====================================================================================================
738 2020-09-12 01:23:00.001 | 2020-10-12 01:23:00.001 | 2592000000 | 4320 |
739 2020-09-21 01:23:00.001 | 2020-10-21 01:23:00.001 | 2592000000 | 17280 |
740 2020-09-30 01:23:00.001 | 2020-10-30 01:23:00.001 | 2592000000 | 30240 |
741 2020-10-09 01:23:00.001 | 2020-11-09 01:23:00.001 | 2678400000 | 44640 |
742 2020-10-18 01:23:00.001 | 2020-11-18 01:23:00.001 | 2678400000 | 44640 |
743 2020-10-27 01:23:00.001 | 2020-11-27 01:23:00.001 | 2678400000 | 44640 |
744 2020-11-05 01:23:00.001 | 2020-12-05 01:23:00.001 | 2592000000 | 43200 |
745 2020-11-14 01:23:00.001 | 2020-12-14 01:23:00.001 | 2592000000 | 36556 |
746 2020-11-23 01:23:00.001 | 2020-12-23 01:23:00.001 | 2592000000 | 23596 |
747 2020-12-02 01:23:00.001 | 2021-01-02 01:23:00.001 | 2678400000 | 10636 |
748taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(9d) limit 10;
749 _wstart | _wend | _wduration | count(*) |
750====================================================================================================
751 2020-10-13 01:23:00.001 | 2020-11-13 01:23:00.001 | 2678400000 | 5760 |
752 2020-10-22 01:23:00.001 | 2020-11-22 01:23:00.001 | 2678400000 | 18720 |
753 2020-10-31 01:23:00.001 | 2020-11-30 01:23:00.001 | 2592000000 | 30240 |
754 2020-11-09 01:23:00.001 | 2020-12-09 01:23:00.001 | 2592000000 | 43200 |
755 2020-11-18 01:23:00.001 | 2020-12-18 01:23:00.001 | 2592000000 | 30796 |
756 2020-11-27 01:23:00.001 | 2020-12-27 01:23:00.001 | 2592000000 | 17836 |
757 2020-12-06 01:23:00.001 | 2021-01-06 01:23:00.001 | 2678400000 | 4876 |
758taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(9d) limit 10;
759 _wstart | _wend | _wduration | count(*) |
760====================================================================================================
761 2020-11-12 01:23:00.001 | 2020-12-12 01:23:00.001 | 2592000000 | 556 |
762 2020-11-21 01:23:00.001 | 2020-12-21 01:23:00.001 | 2592000000 | 556 |
763 2020-11-30 01:23:00.001 | 2020-12-30 01:23:00.001 | 2592000000 | 556 |
764 2020-12-09 01:23:00.001 | 2021-01-09 01:23:00.001 | 2678400000 | 556 |
765taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > cast('2020-12-18 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(9d) limit 10;
766taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-10-08 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(13d) limit 10;
767 _wstart | _wend | _wduration | count(*) |
768====================================================================================================
769 2020-09-13 01:23:00.000 | 2020-10-13 01:23:00.000 | 2592000000 | 5760 |
770 2020-09-26 01:23:00.000 | 2020-10-26 01:23:00.000 | 2592000000 | 24480 |
771 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 44640 |
772 2020-10-22 01:23:00.000 | 2020-11-22 01:23:00.000 | 2678400000 | 44640 |
773 2020-11-04 01:23:00.000 | 2020-12-04 01:23:00.000 | 2592000000 | 43200 |
774 2020-11-17 01:23:00.000 | 2020-12-17 01:23:00.000 | 2592000000 | 32237 |
775 2020-11-30 01:23:00.000 | 2020-12-30 01:23:00.000 | 2592000000 | 13517 |
776taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-11-08 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(13d) limit 10;
777 _wstart | _wend | _wduration | count(*) |
778====================================================================================================
779 2020-10-14 01:23:00.000 | 2020-11-14 01:23:00.000 | 2678400000 | 7200 |
780 2020-10-27 01:23:00.000 | 2020-11-27 01:23:00.000 | 2678400000 | 25920 |
781 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 |
782 2020-11-22 01:23:00.000 | 2020-12-22 01:23:00.000 | 2592000000 | 25037 |
783 2020-12-05 01:23:00.000 | 2021-01-05 01:23:00.000 | 2678400000 | 6317 |
784taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-12-08 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(13d) limit 10;
785 _wstart | _wend | _wduration | count(*) |
786====================================================================================================
787 2020-11-13 01:23:00.000 | 2020-12-13 01:23:00.000 | 2592000000 | 557 |
788 2020-11-26 01:23:00.000 | 2020-12-26 01:23:00.000 | 2592000000 | 557 |
789 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
790taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= cast('2020-12-18 01:23:00' as timestamp) + 1d interval(1n, auto) sliding(13d) limit 10;
791taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > i1 interval(1h, auto) limit 10;
792 _wstart | _wend | _wduration | count(*) |
793====================================================================================================
794 2020-10-01 00:00:00.000 | 2020-10-01 01:00:00.000 | 3600000 | 60 |
795 2020-10-01 01:00:00.000 | 2020-10-01 02:00:00.000 | 3600000 | 60 |
796 2020-10-01 02:00:00.000 | 2020-10-01 03:00:00.000 | 3600000 | 60 |
797 2020-10-01 03:00:00.000 | 2020-10-01 04:00:00.000 | 3600000 | 60 |
798 2020-10-01 04:00:00.000 | 2020-10-01 05:00:00.000 | 3600000 | 60 |
799 2020-10-01 05:00:00.000 | 2020-10-01 06:00:00.000 | 3600000 | 60 |
800 2020-10-01 06:00:00.000 | 2020-10-01 07:00:00.000 | 3600000 | 60 |
801 2020-10-01 07:00:00.000 | 2020-10-01 08:00:00.000 | 3600000 | 60 |
802 2020-10-01 08:00:00.000 | 2020-10-01 09:00:00.000 | 3600000 | 60 |
803 2020-10-01 09:00:00.000 | 2020-10-01 10:00:00.000 | 3600000 | 60 |
804taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > i1 and ts <= bi2 interval(1d, auto) limit 10;
805taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= i1 or ts < bi2 interval(1n, auto) limit 10;
806 _wstart | _wend | _wduration | count(*) |
807====================================================================================================
808 2020-10-01 00:00:00.000 | 2020-11-01 00:00:00.000 | 2678400000 | 44640 |
809 2020-11-01 00:00:00.000 | 2020-12-01 00:00:00.000 | 2592000000 | 43200 |
810 2020-12-01 00:00:00.000 | 2021-01-01 00:00:00.000 | 2678400000 | 12160 |
811taos> select _wstart, _wend, _wduration, count(*) from test.st where ts - 1d = '2020-11-11 23:32:00' interval(1h, auto) limit 10;
812 _wstart | _wend | _wduration | count(*) |
813====================================================================================================
814 2020-11-12 23:00:00.000 | 2020-11-13 00:00:00.000 | 3600000 | 1 |
815taos> select _wstart, _wend, _wduration, count(*) from test.st where ts - 1d in ('2020-10-08 01:23:00', '2020-11-08 01:23:00', '2020-12-08 01:23:00', '2020-12-18 01:23:00') interval(1d, auto) limit 10;
816 _wstart | _wend | _wduration | count(*) |
817====================================================================================================
818 2020-10-09 00:00:00.000 | 2020-10-10 00:00:00.000 | 86400000 | 1 |
819 2020-11-09 00:00:00.000 | 2020-11-10 00:00:00.000 | 86400000 | 1 |
820 2020-12-09 00:00:00.000 | 2020-12-10 00:00:00.000 | 86400000 | 1 |
821taos> select _wstart, _wend, _wduration, count(*) from test.st where ts - 1d >= '2020-11-08 01:23:00' interval(1n, auto) limit 10;
822 _wstart | _wend | _wduration | count(*) |
823====================================================================================================
824 2020-11-01 00:00:00.000 | 2020-12-01 00:00:00.000 | 2592000000 | 31597 |
825 2020-12-01 00:00:00.000 | 2021-01-01 00:00:00.000 | 2678400000 | 12160 |
826taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1s, auto) limit 10;
827 _wstart | _wend | _wduration | count(*) |
828====================================================================================================
829 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
830 2020-11-19 11:22:00.000 | 2020-11-19 11:22:01.000 | 1000 | 1 |
831 2020-11-19 11:23:00.000 | 2020-11-19 11:23:01.000 | 1000 | 1 |
832 2020-11-19 11:24:00.000 | 2020-11-19 11:24:01.000 | 1000 | 1 |
833 2020-11-19 11:25:00.000 | 2020-11-19 11:25:01.000 | 1000 | 1 |
834 2020-11-19 11:26:00.000 | 2020-11-19 11:26:01.000 | 1000 | 1 |
835 2020-11-19 11:27:00.000 | 2020-11-19 11:27:01.000 | 1000 | 1 |
836 2020-11-19 11:28:00.000 | 2020-11-19 11:28:01.000 | 1000 | 1 |
837 2020-11-19 11:29:00.000 | 2020-11-19 11:29:01.000 | 1000 | 1 |
838 2020-11-19 11:30:00.000 | 2020-11-19 11:30:01.000 | 1000 | 1 |
839taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1s, auto) limit 10;
840 _wstart | _wend | _wduration | count(*) |
841====================================================================================================
842 2020-10-02 23:45:00.000 | 2020-10-02 23:45:01.000 | 1000 | 1 |
843 2020-10-02 23:46:00.000 | 2020-10-02 23:46:01.000 | 1000 | 1 |
844 2020-10-02 23:47:00.000 | 2020-10-02 23:47:01.000 | 1000 | 1 |
845 2020-10-02 23:48:00.000 | 2020-10-02 23:48:01.000 | 1000 | 1 |
846 2020-10-02 23:49:00.000 | 2020-10-02 23:49:01.000 | 1000 | 1 |
847 2020-10-02 23:50:00.000 | 2020-10-02 23:50:01.000 | 1000 | 1 |
848 2020-10-02 23:51:00.000 | 2020-10-02 23:51:01.000 | 1000 | 1 |
849 2020-10-02 23:52:00.000 | 2020-10-02 23:52:01.000 | 1000 | 1 |
850 2020-10-02 23:53:00.000 | 2020-10-02 23:53:01.000 | 1000 | 1 |
851 2020-10-02 23:54:00.000 | 2020-10-02 23:54:01.000 | 1000 | 1 |
852taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1s, auto) limit 10;
853 _wstart | _wend | _wduration | count(*) |
854====================================================================================================
855 2020-10-02 23:45:00.000 | 2020-10-02 23:45:01.000 | 1000 | 1 |
856 2020-10-02 23:46:00.000 | 2020-10-02 23:46:01.000 | 1000 | 1 |
857 2020-10-02 23:47:00.000 | 2020-10-02 23:47:01.000 | 1000 | 1 |
858 2020-10-02 23:48:00.000 | 2020-10-02 23:48:01.000 | 1000 | 1 |
859 2020-10-02 23:49:00.000 | 2020-10-02 23:49:01.000 | 1000 | 1 |
860 2020-10-02 23:50:00.000 | 2020-10-02 23:50:01.000 | 1000 | 1 |
861 2020-10-02 23:51:00.000 | 2020-10-02 23:51:01.000 | 1000 | 1 |
862 2020-10-02 23:52:00.000 | 2020-10-02 23:52:01.000 | 1000 | 1 |
863 2020-10-02 23:53:00.000 | 2020-10-02 23:53:01.000 | 1000 | 1 |
864 2020-10-02 23:54:00.000 | 2020-10-02 23:54:01.000 | 1000 | 1 |
865taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1m, auto) limit 10;
866 _wstart | _wend | _wduration | count(*) |
867====================================================================================================
868 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
869 2020-11-19 11:22:00.000 | 2020-11-19 11:23:00.000 | 60000 | 1 |
870 2020-11-19 11:23:00.000 | 2020-11-19 11:24:00.000 | 60000 | 1 |
871 2020-11-19 11:24:00.000 | 2020-11-19 11:25:00.000 | 60000 | 1 |
872 2020-11-19 11:25:00.000 | 2020-11-19 11:26:00.000 | 60000 | 1 |
873 2020-11-19 11:26:00.000 | 2020-11-19 11:27:00.000 | 60000 | 1 |
874 2020-11-19 11:27:00.000 | 2020-11-19 11:28:00.000 | 60000 | 1 |
875 2020-11-19 11:28:00.000 | 2020-11-19 11:29:00.000 | 60000 | 1 |
876 2020-11-19 11:29:00.000 | 2020-11-19 11:30:00.000 | 60000 | 1 |
877 2020-11-19 11:30:00.000 | 2020-11-19 11:31:00.000 | 60000 | 1 |
878taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1m, auto) limit 10;
879 _wstart | _wend | _wduration | count(*) |
880====================================================================================================
881 2020-10-02 23:45:00.000 | 2020-10-02 23:46:00.000 | 60000 | 1 |
882 2020-10-02 23:46:00.000 | 2020-10-02 23:47:00.000 | 60000 | 1 |
883 2020-10-02 23:47:00.000 | 2020-10-02 23:48:00.000 | 60000 | 1 |
884 2020-10-02 23:48:00.000 | 2020-10-02 23:49:00.000 | 60000 | 1 |
885 2020-10-02 23:49:00.000 | 2020-10-02 23:50:00.000 | 60000 | 1 |
886 2020-10-02 23:50:00.000 | 2020-10-02 23:51:00.000 | 60000 | 1 |
887 2020-10-02 23:51:00.000 | 2020-10-02 23:52:00.000 | 60000 | 1 |
888 2020-10-02 23:52:00.000 | 2020-10-02 23:53:00.000 | 60000 | 1 |
889 2020-10-02 23:53:00.000 | 2020-10-02 23:54:00.000 | 60000 | 1 |
890 2020-10-02 23:54:00.000 | 2020-10-02 23:55:00.000 | 60000 | 1 |
891taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1m, auto) limit 10;
892 _wstart | _wend | _wduration | count(*) |
893====================================================================================================
894 2020-10-02 23:45:00.000 | 2020-10-02 23:46:00.000 | 60000 | 1 |
895 2020-10-02 23:46:00.000 | 2020-10-02 23:47:00.000 | 60000 | 1 |
896 2020-10-02 23:47:00.000 | 2020-10-02 23:48:00.000 | 60000 | 1 |
897 2020-10-02 23:48:00.000 | 2020-10-02 23:49:00.000 | 60000 | 1 |
898 2020-10-02 23:49:00.000 | 2020-10-02 23:50:00.000 | 60000 | 1 |
899 2020-10-02 23:50:00.000 | 2020-10-02 23:51:00.000 | 60000 | 1 |
900 2020-10-02 23:51:00.000 | 2020-10-02 23:52:00.000 | 60000 | 1 |
901 2020-10-02 23:52:00.000 | 2020-10-02 23:53:00.000 | 60000 | 1 |
902 2020-10-02 23:53:00.000 | 2020-10-02 23:54:00.000 | 60000 | 1 |
903 2020-10-02 23:54:00.000 | 2020-10-02 23:55:00.000 | 60000 | 1 |
904taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1h, auto) limit 10;
905 _wstart | _wend | _wduration | count(*) |
906====================================================================================================
907 2020-10-09 01:23:00.000 | 2020-10-09 02:23:00.000 | 3600000 | 1 |
908 2020-11-19 10:23:00.000 | 2020-11-19 11:23:00.000 | 3600000 | 1 |
909 2020-11-19 11:23:00.000 | 2020-11-19 12:23:00.000 | 3600000 | 60 |
910 2020-11-19 12:23:00.000 | 2020-11-19 13:23:00.000 | 3600000 | 60 |
911 2020-11-19 13:23:00.000 | 2020-11-19 14:23:00.000 | 3600000 | 60 |
912 2020-11-19 14:23:00.000 | 2020-11-19 15:23:00.000 | 3600000 | 60 |
913 2020-11-19 15:23:00.000 | 2020-11-19 16:23:00.000 | 3600000 | 60 |
914 2020-11-19 16:23:00.000 | 2020-11-19 17:23:00.000 | 3600000 | 60 |
915 2020-11-19 17:23:00.000 | 2020-11-19 18:23:00.000 | 3600000 | 60 |
916 2020-11-19 18:23:00.000 | 2020-11-19 19:23:00.000 | 3600000 | 60 |
917taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1h, auto) limit 10;
918 _wstart | _wend | _wduration | count(*) |
919====================================================================================================
920 2020-10-02 23:45:00.000 | 2020-10-03 00:45:00.000 | 3600000 | 60 |
921 2020-10-03 00:45:00.000 | 2020-10-03 01:45:00.000 | 3600000 | 60 |
922 2020-10-03 01:45:00.000 | 2020-10-03 02:45:00.000 | 3600000 | 60 |
923 2020-10-03 02:45:00.000 | 2020-10-03 03:45:00.000 | 3600000 | 60 |
924 2020-10-03 03:45:00.000 | 2020-10-03 04:45:00.000 | 3600000 | 60 |
925 2020-10-03 04:45:00.000 | 2020-10-03 05:45:00.000 | 3600000 | 60 |
926 2020-10-03 05:45:00.000 | 2020-10-03 06:45:00.000 | 3600000 | 60 |
927 2020-10-03 06:45:00.000 | 2020-10-03 07:45:00.000 | 3600000 | 60 |
928 2020-10-03 07:45:00.000 | 2020-10-03 08:45:00.000 | 3600000 | 60 |
929 2020-10-03 08:45:00.000 | 2020-10-03 09:45:00.000 | 3600000 | 60 |
930taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1h, auto) limit 10;
931 _wstart | _wend | _wduration | count(*) |
932====================================================================================================
933 2020-10-02 23:00:00.000 | 2020-10-03 00:00:00.000 | 3600000 | 15 |
934 2020-10-03 00:00:00.000 | 2020-10-03 01:00:00.000 | 3600000 | 60 |
935 2020-10-03 01:00:00.000 | 2020-10-03 02:00:00.000 | 3600000 | 60 |
936 2020-10-03 02:00:00.000 | 2020-10-03 03:00:00.000 | 3600000 | 60 |
937 2020-10-03 03:00:00.000 | 2020-10-03 04:00:00.000 | 3600000 | 60 |
938 2020-10-03 04:00:00.000 | 2020-10-03 05:00:00.000 | 3600000 | 60 |
939 2020-10-03 05:00:00.000 | 2020-10-03 06:00:00.000 | 3600000 | 60 |
940 2020-10-03 06:00:00.000 | 2020-10-03 07:00:00.000 | 3600000 | 60 |
941 2020-10-03 07:00:00.000 | 2020-10-03 08:00:00.000 | 3600000 | 60 |
942 2020-10-03 08:00:00.000 | 2020-10-03 09:00:00.000 | 3600000 | 60 |
943taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1d, auto) limit 10;
944 _wstart | _wend | _wduration | count(*) |
945====================================================================================================
946 2020-10-09 01:23:00.000 | 2020-10-10 01:23:00.000 | 86400000 | 1 |
947 2020-11-19 01:23:00.000 | 2020-11-20 01:23:00.000 | 86400000 | 841 |
948 2020-11-20 01:23:00.000 | 2020-11-21 01:23:00.000 | 86400000 | 1440 |
949 2020-11-21 01:23:00.000 | 2020-11-22 01:23:00.000 | 86400000 | 1440 |
950 2020-11-22 01:23:00.000 | 2020-11-23 01:23:00.000 | 86400000 | 1440 |
951 2020-11-23 01:23:00.000 | 2020-11-24 01:23:00.000 | 86400000 | 1440 |
952 2020-11-24 01:23:00.000 | 2020-11-25 01:23:00.000 | 86400000 | 1440 |
953 2020-11-25 01:23:00.000 | 2020-11-26 01:23:00.000 | 86400000 | 1440 |
954 2020-11-26 01:23:00.000 | 2020-11-27 01:23:00.000 | 86400000 | 1440 |
955 2020-11-27 01:23:00.000 | 2020-11-28 01:23:00.000 | 86400000 | 1440 |
956taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1d, auto) limit 10;
957 _wstart | _wend | _wduration | count(*) |
958====================================================================================================
959 2020-10-02 23:45:00.000 | 2020-10-03 23:45:00.000 | 86400000 | 1440 |
960 2020-10-03 23:45:00.000 | 2020-10-04 23:45:00.000 | 86400000 | 1440 |
961 2020-10-04 23:45:00.000 | 2020-10-05 23:45:00.000 | 86400000 | 1440 |
962 2020-10-05 23:45:00.000 | 2020-10-06 23:45:00.000 | 86400000 | 1440 |
963 2020-10-06 23:45:00.000 | 2020-10-07 23:45:00.000 | 86400000 | 1440 |
964 2020-10-07 23:45:00.000 | 2020-10-08 23:45:00.000 | 86400000 | 1440 |
965 2020-10-08 23:45:00.000 | 2020-10-09 23:45:00.000 | 86400000 | 1440 |
966 2020-10-09 23:45:00.000 | 2020-10-10 23:45:00.000 | 86400000 | 1440 |
967 2020-10-10 23:45:00.000 | 2020-10-11 23:45:00.000 | 86400000 | 1440 |
968 2020-10-11 23:45:00.000 | 2020-10-12 23:45:00.000 | 86400000 | 1427 |
969taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1d, auto) limit 10;
970 _wstart | _wend | _wduration | count(*) |
971====================================================================================================
972 2020-10-02 00:00:00.000 | 2020-10-03 00:00:00.000 | 86400000 | 15 |
973 2020-10-03 00:00:00.000 | 2020-10-04 00:00:00.000 | 86400000 | 1440 |
974 2020-10-04 00:00:00.000 | 2020-10-05 00:00:00.000 | 86400000 | 1440 |
975 2020-10-05 00:00:00.000 | 2020-10-06 00:00:00.000 | 86400000 | 1440 |
976 2020-10-06 00:00:00.000 | 2020-10-07 00:00:00.000 | 86400000 | 1440 |
977 2020-10-07 00:00:00.000 | 2020-10-08 00:00:00.000 | 86400000 | 1440 |
978 2020-10-08 00:00:00.000 | 2020-10-09 00:00:00.000 | 86400000 | 1440 |
979 2020-10-09 00:00:00.000 | 2020-10-10 00:00:00.000 | 86400000 | 1440 |
980 2020-10-10 00:00:00.000 | 2020-10-11 00:00:00.000 | 86400000 | 1440 |
981 2020-10-11 00:00:00.000 | 2020-10-12 00:00:00.000 | 86400000 | 1440 |
982taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1s, auto) sliding(700a) limit 10;
983 _wstart | _wend | _wduration | count(*) |
984====================================================================================================
985 2020-10-09 01:22:59.300 | 2020-10-09 01:23:00.300 | 1000 | 1 |
986 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 |
987 2020-11-19 11:21:59.100 | 2020-11-19 11:22:00.100 | 1000 | 1 |
988 2020-11-19 11:21:59.800 | 2020-11-19 11:22:00.800 | 1000 | 1 |
989 2020-11-19 11:22:59.300 | 2020-11-19 11:23:00.300 | 1000 | 1 |
990 2020-11-19 11:23:00.000 | 2020-11-19 11:23:01.000 | 1000 | 1 |
991 2020-11-19 11:23:59.500 | 2020-11-19 11:24:00.500 | 1000 | 1 |
992 2020-11-19 11:24:59.700 | 2020-11-19 11:25:00.700 | 1000 | 1 |
993 2020-11-19 11:25:59.200 | 2020-11-19 11:26:00.200 | 1000 | 1 |
994 2020-11-19 11:25:59.900 | 2020-11-19 11:26:00.900 | 1000 | 1 |
995taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1s, auto) sliding(700a) limit 10;
996 _wstart | _wend | _wduration | count(*) |
997====================================================================================================
998 2020-10-02 23:44:59.300 | 2020-10-02 23:45:00.300 | 1000 | 1 |
999 2020-10-02 23:45:00.000 | 2020-10-02 23:45:01.000 | 1000 | 1 |
1000 2020-10-02 23:45:59.500 | 2020-10-02 23:46:00.500 | 1000 | 1 |
1001 2020-10-02 23:46:59.700 | 2020-10-02 23:47:00.700 | 1000 | 1 |
1002 2020-10-02 23:47:59.200 | 2020-10-02 23:48:00.200 | 1000 | 1 |
1003 2020-10-02 23:47:59.900 | 2020-10-02 23:48:00.900 | 1000 | 1 |
1004 2020-10-02 23:48:59.400 | 2020-10-02 23:49:00.400 | 1000 | 1 |
1005 2020-10-02 23:49:59.600 | 2020-10-02 23:50:00.600 | 1000 | 1 |
1006 2020-10-02 23:50:59.100 | 2020-10-02 23:51:00.100 | 1000 | 1 |
1007 2020-10-02 23:50:59.800 | 2020-10-02 23:51:00.800 | 1000 | 1 |
1008taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1s, auto) sliding(700a) limit 10;
1009 _wstart | _wend | _wduration | count(*) |
1010====================================================================================================
1011 2020-10-02 23:44:59.600 | 2020-10-02 23:45:00.600 | 1000 | 1 |
1012 2020-10-02 23:45:59.100 | 2020-10-02 23:46:00.100 | 1000 | 1 |
1013 2020-10-02 23:45:59.800 | 2020-10-02 23:46:00.800 | 1000 | 1 |
1014 2020-10-02 23:46:59.300 | 2020-10-02 23:47:00.300 | 1000 | 1 |
1015 2020-10-02 23:47:00.000 | 2020-10-02 23:47:01.000 | 1000 | 1 |
1016 2020-10-02 23:47:59.500 | 2020-10-02 23:48:00.500 | 1000 | 1 |
1017 2020-10-02 23:48:59.700 | 2020-10-02 23:49:00.700 | 1000 | 1 |
1018 2020-10-02 23:49:59.200 | 2020-10-02 23:50:00.200 | 1000 | 1 |
1019 2020-10-02 23:49:59.900 | 2020-10-02 23:50:00.900 | 1000 | 1 |
1020 2020-10-02 23:50:59.400 | 2020-10-02 23:51:00.400 | 1000 | 1 |
1021taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1m, auto) sliding(37s) limit 10;
1022 _wstart | _wend | _wduration | count(*) |
1023====================================================================================================
1024 2020-10-09 01:22:23.000 | 2020-10-09 01:23:23.000 | 60000 | 1 |
1025 2020-10-09 01:23:00.000 | 2020-10-09 01:24:00.000 | 60000 | 1 |
1026 2020-11-19 11:21:27.000 | 2020-11-19 11:22:27.000 | 60000 | 1 |
1027 2020-11-19 11:22:04.000 | 2020-11-19 11:23:04.000 | 60000 | 1 |
1028 2020-11-19 11:22:41.000 | 2020-11-19 11:23:41.000 | 60000 | 1 |
1029 2020-11-19 11:23:18.000 | 2020-11-19 11:24:18.000 | 60000 | 1 |
1030 2020-11-19 11:23:55.000 | 2020-11-19 11:24:55.000 | 60000 | 1 |
1031 2020-11-19 11:24:32.000 | 2020-11-19 11:25:32.000 | 60000 | 1 |
1032 2020-11-19 11:25:09.000 | 2020-11-19 11:26:09.000 | 60000 | 1 |
1033 2020-11-19 11:25:46.000 | 2020-11-19 11:26:46.000 | 60000 | 1 |
1034taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1m, auto) sliding(37s) limit 10;
1035 _wstart | _wend | _wduration | count(*) |
1036====================================================================================================
1037 2020-10-02 23:44:23.000 | 2020-10-02 23:45:23.000 | 60000 | 1 |
1038 2020-10-02 23:45:00.000 | 2020-10-02 23:46:00.000 | 60000 | 1 |
1039 2020-10-02 23:45:37.000 | 2020-10-02 23:46:37.000 | 60000 | 1 |
1040 2020-10-02 23:46:14.000 | 2020-10-02 23:47:14.000 | 60000 | 1 |
1041 2020-10-02 23:46:51.000 | 2020-10-02 23:47:51.000 | 60000 | 1 |
1042 2020-10-02 23:47:28.000 | 2020-10-02 23:48:28.000 | 60000 | 1 |
1043 2020-10-02 23:48:05.000 | 2020-10-02 23:49:05.000 | 60000 | 1 |
1044 2020-10-02 23:48:42.000 | 2020-10-02 23:49:42.000 | 60000 | 1 |
1045 2020-10-02 23:49:19.000 | 2020-10-02 23:50:19.000 | 60000 | 1 |
1046 2020-10-02 23:49:56.000 | 2020-10-02 23:50:56.000 | 60000 | 1 |
1047taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1m, auto) sliding(37s) limit 10;
1048 _wstart | _wend | _wduration | count(*) |
1049====================================================================================================
1050 2020-10-02 23:44:07.000 | 2020-10-02 23:45:07.000 | 60000 | 1 |
1051 2020-10-02 23:44:44.000 | 2020-10-02 23:45:44.000 | 60000 | 1 |
1052 2020-10-02 23:45:21.000 | 2020-10-02 23:46:21.000 | 60000 | 1 |
1053 2020-10-02 23:45:58.000 | 2020-10-02 23:46:58.000 | 60000 | 1 |
1054 2020-10-02 23:46:35.000 | 2020-10-02 23:47:35.000 | 60000 | 1 |
1055 2020-10-02 23:47:12.000 | 2020-10-02 23:48:12.000 | 60000 | 1 |
1056 2020-10-02 23:47:49.000 | 2020-10-02 23:48:49.000 | 60000 | 1 |
1057 2020-10-02 23:48:26.000 | 2020-10-02 23:49:26.000 | 60000 | 1 |
1058 2020-10-02 23:49:03.000 | 2020-10-02 23:50:03.000 | 60000 | 1 |
1059 2020-10-02 23:49:40.000 | 2020-10-02 23:50:40.000 | 60000 | 1 |
1060taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1h, auto) sliding(27m) limit 10;
1061 _wstart | _wend | _wduration | count(*) |
1062====================================================================================================
1063 2020-10-09 00:29:00.000 | 2020-10-09 01:29:00.000 | 3600000 | 1 |
1064 2020-10-09 00:56:00.000 | 2020-10-09 01:56:00.000 | 3600000 | 1 |
1065 2020-10-09 01:23:00.000 | 2020-10-09 02:23:00.000 | 3600000 | 1 |
1066 2020-11-19 10:32:00.000 | 2020-11-19 11:32:00.000 | 3600000 | 10 |
1067 2020-11-19 10:59:00.000 | 2020-11-19 11:59:00.000 | 3600000 | 37 |
1068 2020-11-19 11:26:00.000 | 2020-11-19 12:26:00.000 | 3600000 | 60 |
1069 2020-11-19 11:53:00.000 | 2020-11-19 12:53:00.000 | 3600000 | 60 |
1070 2020-11-19 12:20:00.000 | 2020-11-19 13:20:00.000 | 3600000 | 60 |
1071 2020-11-19 12:47:00.000 | 2020-11-19 13:47:00.000 | 3600000 | 60 |
1072 2020-11-19 13:14:00.000 | 2020-11-19 14:14:00.000 | 3600000 | 60 |
1073taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1h, auto) sliding(27m) limit 10;
1074 _wstart | _wend | _wduration | count(*) |
1075====================================================================================================
1076 2020-10-02 22:51:00.000 | 2020-10-02 23:51:00.000 | 3600000 | 6 |
1077 2020-10-02 23:18:00.000 | 2020-10-03 00:18:00.000 | 3600000 | 33 |
1078 2020-10-02 23:45:00.000 | 2020-10-03 00:45:00.000 | 3600000 | 60 |
1079 2020-10-03 00:12:00.000 | 2020-10-03 01:12:00.000 | 3600000 | 60 |
1080 2020-10-03 00:39:00.000 | 2020-10-03 01:39:00.000 | 3600000 | 60 |
1081 2020-10-03 01:06:00.000 | 2020-10-03 02:06:00.000 | 3600000 | 60 |
1082 2020-10-03 01:33:00.000 | 2020-10-03 02:33:00.000 | 3600000 | 60 |
1083 2020-10-03 02:00:00.000 | 2020-10-03 03:00:00.000 | 3600000 | 60 |
1084 2020-10-03 02:27:00.000 | 2020-10-03 03:27:00.000 | 3600000 | 60 |
1085 2020-10-03 02:54:00.000 | 2020-10-03 03:54:00.000 | 3600000 | 60 |
1086taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1h, auto) sliding(27m) limit 10;
1087 _wstart | _wend | _wduration | count(*) |
1088====================================================================================================
1089 2020-10-02 22:51:00.000 | 2020-10-02 23:51:00.000 | 3600000 | 6 |
1090 2020-10-02 23:18:00.000 | 2020-10-03 00:18:00.000 | 3600000 | 33 |
1091 2020-10-02 23:45:00.000 | 2020-10-03 00:45:00.000 | 3600000 | 60 |
1092 2020-10-03 00:12:00.000 | 2020-10-03 01:12:00.000 | 3600000 | 60 |
1093 2020-10-03 00:39:00.000 | 2020-10-03 01:39:00.000 | 3600000 | 60 |
1094 2020-10-03 01:06:00.000 | 2020-10-03 02:06:00.000 | 3600000 | 60 |
1095 2020-10-03 01:33:00.000 | 2020-10-03 02:33:00.000 | 3600000 | 60 |
1096 2020-10-03 02:00:00.000 | 2020-10-03 03:00:00.000 | 3600000 | 60 |
1097 2020-10-03 02:27:00.000 | 2020-10-03 03:27:00.000 | 3600000 | 60 |
1098 2020-10-03 02:54:00.000 | 2020-10-03 03:54:00.000 | 3600000 | 60 |
1099taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1d, auto) sliding(17h) limit 10;
1100 _wstart | _wend | _wduration | count(*) |
1101====================================================================================================
1102 2020-10-08 08:23:00.000 | 2020-10-09 08:23:00.000 | 86400000 | 1 |
1103 2020-10-09 01:23:00.000 | 2020-10-10 01:23:00.000 | 86400000 | 1 |
1104 2020-11-19 03:23:00.000 | 2020-11-20 03:23:00.000 | 86400000 | 961 |
1105 2020-11-19 20:23:00.000 | 2020-11-20 20:23:00.000 | 86400000 | 1440 |
1106 2020-11-20 13:23:00.000 | 2020-11-21 13:23:00.000 | 86400000 | 1440 |
1107 2020-11-21 06:23:00.000 | 2020-11-22 06:23:00.000 | 86400000 | 1440 |
1108 2020-11-21 23:23:00.000 | 2020-11-22 23:23:00.000 | 86400000 | 1440 |
1109 2020-11-22 16:23:00.000 | 2020-11-23 16:23:00.000 | 86400000 | 1440 |
1110 2020-11-23 09:23:00.000 | 2020-11-24 09:23:00.000 | 86400000 | 1440 |
1111 2020-11-24 02:23:00.000 | 2020-11-25 02:23:00.000 | 86400000 | 1440 |
1112taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1d, auto) sliding(17h) limit 10;
1113 _wstart | _wend | _wduration | count(*) |
1114====================================================================================================
1115 2020-10-02 06:45:00.000 | 2020-10-03 06:45:00.000 | 86400000 | 420 |
1116 2020-10-02 23:45:00.000 | 2020-10-03 23:45:00.000 | 86400000 | 1440 |
1117 2020-10-03 16:45:00.000 | 2020-10-04 16:45:00.000 | 86400000 | 1440 |
1118 2020-10-04 09:45:00.000 | 2020-10-05 09:45:00.000 | 86400000 | 1440 |
1119 2020-10-05 02:45:00.000 | 2020-10-06 02:45:00.000 | 86400000 | 1440 |
1120 2020-10-05 19:45:00.000 | 2020-10-06 19:45:00.000 | 86400000 | 1440 |
1121 2020-10-06 12:45:00.000 | 2020-10-07 12:45:00.000 | 86400000 | 1440 |
1122 2020-10-07 05:45:00.000 | 2020-10-08 05:45:00.000 | 86400000 | 1440 |
1123 2020-10-07 22:45:00.000 | 2020-10-08 22:45:00.000 | 86400000 | 1440 |
1124 2020-10-08 15:45:00.000 | 2020-10-09 15:45:00.000 | 86400000 | 1440 |
1125taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1d, auto) sliding(17h) limit 10;
1126 _wstart | _wend | _wduration | count(*) |
1127====================================================================================================
1128 2020-10-02 02:00:00.000 | 2020-10-03 02:00:00.000 | 86400000 | 135 |
1129 2020-10-02 19:00:00.000 | 2020-10-03 19:00:00.000 | 86400000 | 1155 |
1130 2020-10-03 12:00:00.000 | 2020-10-04 12:00:00.000 | 86400000 | 1440 |
1131 2020-10-04 05:00:00.000 | 2020-10-05 05:00:00.000 | 86400000 | 1440 |
1132 2020-10-04 22:00:00.000 | 2020-10-05 22:00:00.000 | 86400000 | 1440 |
1133 2020-10-05 15:00:00.000 | 2020-10-06 15:00:00.000 | 86400000 | 1440 |
1134 2020-10-06 08:00:00.000 | 2020-10-07 08:00:00.000 | 86400000 | 1440 |
1135 2020-10-07 01:00:00.000 | 2020-10-08 01:00:00.000 | 86400000 | 1440 |
1136 2020-10-07 18:00:00.000 | 2020-10-08 18:00:00.000 | 86400000 | 1440 |
1137 2020-10-08 11:00:00.000 | 2020-10-09 11:00:00.000 | 86400000 | 1440 |
1138taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1n, auto) limit 10;
1139 _wstart | _wend | _wduration | count(*) |
1140====================================================================================================
1141 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 1 |
1142 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 28201 |
1143 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 |
1144taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1n, auto) limit 10;
1145 _wstart | _wend | _wduration | count(*) |
1146====================================================================================================
1147 2020-10-02 23:45:00.000 | 2020-11-02 23:45:00.000 | 2678400000 | 14387 |
1148 2020-12-02 23:45:00.000 | 2021-01-02 23:45:00.000 | 2678400000 | 1 |
1149taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1n, auto) limit 10;
1150 _wstart | _wend | _wduration | count(*) |
1151====================================================================================================
1152 2020-10-01 00:00:00.000 | 2020-11-01 00:00:00.000 | 2678400000 | 14387 |
1153 2020-11-01 00:00:00.000 | 2020-12-01 00:00:00.000 | 2592000000 | 1 |
1154 2020-12-01 00:00:00.000 | 2021-01-01 00:00:00.000 | 2678400000 | 1 |
1155taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1n, auto) sliding(9d) limit 10;
1156 _wstart | _wend | _wduration | count(*) |
1157====================================================================================================
1158 2020-09-12 01:23:00.000 | 2020-10-12 01:23:00.000 | 2592000000 | 1 |
1159 2020-09-21 01:23:00.000 | 2020-10-21 01:23:00.000 | 2592000000 | 1 |
1160 2020-09-30 01:23:00.000 | 2020-10-30 01:23:00.000 | 2592000000 | 1 |
1161 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 1 |
1162 2020-10-27 01:23:00.000 | 2020-11-27 01:23:00.000 | 2678400000 | 10921 |
1163 2020-11-05 01:23:00.000 | 2020-12-05 01:23:00.000 | 2592000000 | 22441 |
1164 2020-11-14 01:23:00.000 | 2020-12-14 01:23:00.000 | 2592000000 | 28758 |
1165 2020-11-23 01:23:00.000 | 2020-12-23 01:23:00.000 | 2592000000 | 23597 |
1166 2020-12-02 01:23:00.000 | 2021-01-02 01:23:00.000 | 2678400000 | 10637 |
1167taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1n, auto) sliding(9d) limit 10;
1168 _wstart | _wend | _wduration | count(*) |
1169====================================================================================================
1170 2020-09-05 23:45:00.000 | 2020-10-05 23:45:00.000 | 2592000000 | 4320 |
1171 2020-09-14 23:45:00.000 | 2020-10-14 23:45:00.000 | 2592000000 | 14387 |
1172 2020-09-23 23:45:00.000 | 2020-10-23 23:45:00.000 | 2592000000 | 14387 |
1173 2020-10-02 23:45:00.000 | 2020-11-02 23:45:00.000 | 2678400000 | 14387 |
1174 2020-10-11 23:45:00.000 | 2020-11-11 23:45:00.000 | 2678400000 | 1427 |
1175 2020-11-07 23:45:00.000 | 2020-12-07 23:45:00.000 | 2592000000 | 1 |
1176 2020-11-16 23:45:00.000 | 2020-12-16 23:45:00.000 | 2592000000 | 1 |
1177 2020-11-25 23:45:00.000 | 2020-12-25 23:45:00.000 | 2592000000 | 1 |
1178taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1n, auto) sliding(9d) limit 10;
1179 _wstart | _wend | _wduration | count(*) |
1180====================================================================================================
1181 2020-09-08 00:00:00.000 | 2020-10-08 00:00:00.000 | 2592000000 | 7215 |
1182 2020-09-17 00:00:00.000 | 2020-10-17 00:00:00.000 | 2592000000 | 14387 |
1183 2020-09-26 00:00:00.000 | 2020-10-26 00:00:00.000 | 2592000000 | 14387 |
1184 2020-10-05 00:00:00.000 | 2020-11-05 00:00:00.000 | 2678400000 | 11492 |
1185 2020-10-14 00:00:00.000 | 2020-11-14 00:00:00.000 | 2678400000 | 1 |
1186 2020-10-23 00:00:00.000 | 2020-11-23 00:00:00.000 | 2678400000 | 1 |
1187 2020-11-01 00:00:00.000 | 2020-12-01 00:00:00.000 | 2592000000 | 1 |
1188 2020-11-10 00:00:00.000 | 2020-12-10 00:00:00.000 | 2592000000 | 1 |
1189 2020-11-19 00:00:00.000 | 2020-12-19 00:00:00.000 | 2592000000 | 1 |
1190 2020-11-28 00:00:00.000 | 2020-12-28 00:00:00.000 | 2592000000 | 1 |
1191taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = cast('2020-10-08 01:23:00' as timestamp) + 1d or ts >= '2020-11-19 11:22:00' interval(1n, auto) sliding(13d) limit 10;
1192 _wstart | _wend | _wduration | count(*) |
1193====================================================================================================
1194 2020-09-13 01:23:00.000 | 2020-10-13 01:23:00.000 | 2592000000 | 1 |
1195 2020-09-26 01:23:00.000 | 2020-10-26 01:23:00.000 | 2592000000 | 1 |
1196 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 1 |
1197 2020-10-22 01:23:00.000 | 2020-11-22 01:23:00.000 | 2678400000 | 3721 |
1198 2020-11-04 01:23:00.000 | 2020-12-04 01:23:00.000 | 2592000000 | 21001 |
1199 2020-11-17 01:23:00.000 | 2020-12-17 01:23:00.000 | 2592000000 | 28758 |
1200 2020-11-30 01:23:00.000 | 2020-12-30 01:23:00.000 | 2592000000 | 13517 |
1201taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or (ts > '2020-11-12 23:32:00' and ts = '2020-12-02 23:45:00') interval(1n, auto) sliding(13d) limit 10;
1202 _wstart | _wend | _wduration | count(*) |
1203====================================================================================================
1204 2020-09-06 23:45:00.000 | 2020-10-06 23:45:00.000 | 2592000000 | 5760 |
1205 2020-09-19 23:45:00.000 | 2020-10-19 23:45:00.000 | 2592000000 | 14387 |
1206 2020-10-02 23:45:00.000 | 2020-11-02 23:45:00.000 | 2678400000 | 14387 |
1207 2020-11-10 23:45:00.000 | 2020-12-10 23:45:00.000 | 2592000000 | 1 |
1208 2020-11-23 23:45:00.000 | 2020-12-23 23:45:00.000 | 2592000000 | 1 |
1209taos> select _wstart, _wend, _wduration, count(*) from test.st where (ts >= '2020-10-02 23:45:00' and ts < '2020-10-12 23:32:00') or ts in ('2020-10-09 01:23:00', '2020-11-09 01:23:00', '2020-12-09 01:23:00') interval(1n, auto) sliding(13d) limit 10;
1210 _wstart | _wend | _wduration | count(*) |
1211====================================================================================================
1212 2020-09-07 00:00:00.000 | 2020-10-07 00:00:00.000 | 2592000000 | 5775 |
1213 2020-09-20 00:00:00.000 | 2020-10-20 00:00:00.000 | 2592000000 | 14387 |
1214 2020-10-03 00:00:00.000 | 2020-11-03 00:00:00.000 | 2678400000 | 14372 |
1215 2020-10-16 00:00:00.000 | 2020-11-16 00:00:00.000 | 2678400000 | 1 |
1216 2020-10-29 00:00:00.000 | 2020-11-29 00:00:00.000 | 2678400000 | 1 |
1217 2020-11-11 00:00:00.000 | 2020-12-11 00:00:00.000 | 2592000000 | 1 |
1218 2020-11-24 00:00:00.000 | 2020-12-24 00:00:00.000 | 2592000000 | 1 |
1219 2020-12-07 00:00:00.000 | 2021-01-07 00:00:00.000 | 2678400000 | 1 |
1220taos> select * from test.sta;
1221 _wstart | _wend | _wduration | count(*) | group_id |
1222============================================================================================================================
1223 2020-10-01 00:00:00.000 | 2020-10-01 00:01:00.000 | 60000 | 1 | 0 |
1224 2020-10-01 00:01:00.000 | 2020-10-01 00:02:00.000 | 60000 | 1 | 0 |
1225 2020-10-01 00:02:00.000 | 2020-10-01 00:03:00.000 | 60000 | 1 | 0 |
1226 2020-10-01 00:03:00.000 | 2020-10-01 00:04:00.000 | 60000 | 1 | 0 |
1227 2020-10-01 00:04:00.000 | 2020-10-01 00:05:00.000 | 60000 | 1 | 0 |
1228 2020-10-01 00:05:00.000 | 2020-10-01 00:06:00.000 | 60000 | 1 | 0 |
1229 2020-10-01 00:06:00.000 | 2020-10-01 00:07:00.000 | 60000 | 1 | 0 |
1230 2020-10-01 00:07:00.000 | 2020-10-01 00:08:00.000 | 60000 | 1 | 0 |
1231taos> select * from test.stb;
1232 _wstart | _wend | _wduration | count(*) | group_id |
1233============================================================================================================================
1234 2020-11-01 22:51:00.000 | 2020-11-01 23:51:00.000 | 3600000 | 1 | 0 |
1235 2020-11-01 23:18:00.000 | 2020-11-02 00:18:00.000 | 3600000 | 1 | 0 |
1236 2020-11-01 23:45:00.000 | 2020-11-02 00:45:00.000 | 3600000 | 1 | 0 |
1237taos> select * from test.stc;
1238 _wstart | _wend | _wduration | count(*) | group_id |
1239============================================================================================================================
1240 2020-10-17 23:32:00.000 | 2020-11-17 23:32:00.000 | 2678400000 | 1 | 0 |
1241 2020-10-30 23:32:00.000 | 2020-11-30 23:32:00.000 | 2678400000 | 1 | 0 |
1242 2020-11-12 23:32:00.000 | 2020-12-12 23:32:00.000 | 2592000000 | 1 | 0 |
1243taos> select * from test.std;
1244 _wstart | _wend | _wduration | count(*) | group_id |
1245============================================================================================================================
1246 2020-10-09 01:23:00.000 | 2020-10-09 01:23:01.000 | 1000 | 1 | 0 |
1247 2020-11-09 01:23:00.000 | 2020-11-09 01:23:01.000 | 1000 | 1 | 0 |
1248 2020-12-09 01:23:00.000 | 2020-12-09 01:23:01.000 | 1000 | 1 | 0 |
1249taos> select * from test.ste;
1250 _wstart | _wend | _wduration | count(*) | group_id |
1251============================================================================================================================
1252 2020-12-08 08:23:00.001 | 2020-12-09 08:23:00.001 | 86400000 | 420 | 0 |
1253 2020-12-09 01:23:00.001 | 2020-12-10 01:23:00.001 | 86400000 | 556 | 0 |
1254taos> select * from test.stf;
1255 _wstart | _wend | _wduration | count(*) | group_id |
1256============================================================================================================================
1257 2020-10-09 01:23:00.000 | 2020-11-09 01:23:00.000 | 2678400000 | 44640 | 0 |
1258 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 | 0 |
1259 2020-12-09 01:23:00.000 | 2021-01-09 01:23:00.000 | 2678400000 | 557 | 0 |
1260taos> select * from test.stg;
1261 _wstart | _wend | _wduration | count(*) | group_id |
1262============================================================================================================================
1263 2020-10-14 01:23:00.000 | 2020-11-14 01:23:00.000 | 2678400000 | 7200 | 0 |
1264 2020-10-27 01:23:00.000 | 2020-11-27 01:23:00.000 | 2678400000 | 25920 | 0 |
1265 2020-11-09 01:23:00.000 | 2020-12-09 01:23:00.000 | 2592000000 | 43200 | 0 |
1266 2020-11-22 01:23:00.000 | 2020-12-22 01:23:00.000 | 2592000000 | 25037 | 0 |
1267 2020-12-05 01:23:00.000 | 2021-01-05 01:23:00.000 | 2678400000 | 6317 | 0 |