mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* feat: [TS-6100] Fix virtual supertable plan. * add case stream1 for vehicle * test(stream): photovoltaic scene #TD-36783 * fix: errlog * test: update test case. * test: update test case. * modify case (#32016) * fix: check node type * feat: [TS-6100] set proper curr clause when translating stream trigger. * test asan error * feat: [TD-36758] Fix MAX_DELAY wrong precision. * case: restore bug9 case * test asan error * test: add cases * test: add test for manual recalc. * add case * add case * test: event manual pass. * test: add case into ci * feat: [TD-36761] Remove COMMENT in stream tag def * test(stream): ci test replay #TD-36808 * test: make manual ok. * test: reproduce bugs * case: JIRA TD-36815 set ignore this check * JIRA TD-36815 ignore * feat: [TD-36786] collect now and today to timeRangeExpr * fix: stack overflow * feat: [TD-36709] Optimize create vtable and table's error msg * test: reproduce bugs * test: add bug 11. * add case * test: add cases * test: add vehicle bug1 * test: add cases * test: add cases (#32041) * test: cases * test(stream): photovoltaic scene testing #TD-36783 * test: add test for manual. * fix: force output * add case * add case * remove wrong path case * test(stream): pv scene #TD-36783 * case : add bug2 for vehicle * test: reproduce cases * test(stream): add case #TD-36808 * test: update test case. * test: move case to new test frame. * fix: output * enh: support indef rows functions in extwindow (#32047) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue * fix: external window idx issue * fix: ci issues * fix: ci case issues * fix: drop dnode issue * fix: add debug log * fix: conflict * fix: create stream if not exists issue * fix: ahandle memory leak * fix: case issue * fix: exchange issues * fix: crash issue * fix: exchange prefetch issue * fix: snode quit issue * enh: support indef rows func * fix: crash issues * Fix external window collect vector function * fix: external window indef rows issues --------- Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> * fix: log * feat: [TD-36838] Fix trigger virtual super table * test: vehicle add bug3 * test: vehicle add bug3 pass * test: vehicle add bug3 2 * test: vehicle add bug3 write end * fix(stream): fix filter of virtual tables in trigger task * fix(stream): add virtual table pseudo column value request * fix(stream): get tag for virtual child table * fix(stream): fetch virtual table pseudo columns in trigger * fix(stream): get tag value for vtable * fix(stream): ignore trigger control msg at server close down * fix(stream): retry pull/calc request in trigger task * test(stream): modify and disable some cases * fix: external window issue (#32052) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue * fix: external window idx issue * fix: ci issues * fix: ci case issues * fix: drop dnode issue * fix: add debug log * fix: conflict * fix: create stream if not exists issue * fix: ahandle memory leak * fix: case issue * fix: exchange issues * fix: crash issue * fix: exchange prefetch issue * fix: snode quit issue * enh: support indef rows func * fix: crash issues * Fix external window collect vector function * fix: external window indef rows issues * fix: external window issue --------- Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> * test: add nevados cases * test(stream): fix tobacco case of stream 11 #TD-36514 * test(stream): photovoltaic scene #TD-36783 * fix: output for proj * test:remove nevados.py * add stream case * fix(stream): fix interval window open with watermark * test: add old cases * add case * test:add old case * fix: cann't merge externalwindows * fix(stream): batch get block when fetch data in stream reader * test: add cases to ci (#32064) * test: update test case. * test: update test case. * case: add case * test:add old cases * fix(stream): batch get block when fetch data in stream reader * test: add case into ci * test: add case into ci * fix: datainserter no data * fix: stream result row data inconsistency error (#32053) * fix: set null type * feat: [TS-6100] Fix compile error * feat: [TD-36866] Fix state window expr * test: add bug4 for vehicle * case: bug4 add null update * test(stream): migrate old py cases #TD-36887 * fix(stream): batch get block when fetch data in stream reader * test: compatibility ok. * fix(stream): batch get block when fetch data in stream reader * test: add more versions for stream compatibility. * test: test_empty_identifier.py ok. * fix(stream): columnInfo is null if pData==NULL * test(stream): migrate old py case #TD-36887 * test(stream): migrate old case #TD-36887 * test: add case stream4 ok * test: add case into ci * test: add old cases into ci * test: add old cases into ci * add case * modify case * test: migrate empty_identifier.py to new test framework. * test: add bug5 for vehicle * test: remove mistakenly added files * case: bug5 run failed modify * add stream common * add stream case * add test case * test: bug5 add self.step variant * test: add cases (#32094) * test: migrate test_drop.py. * test: update test case. * add case * add case * test: add use case * Feat/ts 6100 3.0.0722m (#32103) * migrate system-test/2-query * revert file * update case.task * resolve script migrate * run new test framework on new_testcases * migrate system-test/2-query * format docstring * fix test validation * fix test validation * fix error * migrate army case * migrate army case * fix error * migrate system-test/2-query * migrate system-test/2-query * migrate system-test/2-query * migrate system-test/2-query * test exe time * fix ci error * migrate system-test/1-insert * new common function * migrate system-test/1-insert * fix ci error * migrate system-test/1-insert * feat: add configuration and script for memory allocator settings * fix: correct HEAPPROFILE path and remove redundant metadata_thp setting in memory allocator script * fix ci error * migrate system-test/1-insert, 2-query * feat:insert into subquery (#31401) (#31710) * migrate system-test/99-TDcase * feat(gpt): add grant check for gpt. (#31708) * migrate system-test/99-TDcase * migrate system-test/99-TDcase * migrate system-test/99-TDcase * fix/send-heartbeat-statis (#31680) * migrate system-test/7-tmq * chore: support cmake option TAOSWS_GIT_TAG like taosadapter [skip ci] (#31486) * add system-test/6/cluster test * chore: move default branch from main to 3.3.6 for adapter/taosws * fix docstring validation * migrate system-test/7-tmq * migrate system-test/7-tmq * feat: add set_taos_malloc_env configuration and update related scripts * Update 03-kubernetes.md * enh: add log for snapshot (#31681) * simple test * more * migrate system-test/7-tmq * migrate system-test 0-others cases * migrate system-test/7-tmq * fix docstring validation * migrate system-test/7-tmq * fix docstring validation * fix: invalid queue * fix docstring validation * refactor: reorganize memory allocator script constants and improve mode descriptions * enh: TD-36324-improve-sync-heartbeat-log (#31727) * recover log level * fix: taosd crush in query when insufficient memory (#31746) Co-authored-by: Tony Zhang <tonyzhang@taosdata.com> * fix: overflow check in snprintf (#31780) * migrate system-test/7-tmq * migrate some cases * migrate system-test/7-tmq * fix failed cases * fix failed cases * migrate some cases * fix failed cases * fix failed cases * migrate testcases * fix: update environment file path in taosd.service and adjust set_taos_malloc.sh configuration * fix: set lcn before do s3 migrate. (#31782) * migrate testcases * fix failed cases * fix: add condition to set default malloc config for taosd service * fix: update usage message in set_taos_malloc.sh to include quiet mode option * fix: add quiet mode option to set malloc config in install script * fix: update set_taos_malloc.sh to improve output messages and adjust default malloc config invocation * recover log level * fix(tmq): [TS-6569]tdb error if write tmq meta data in multi thread (#31808) * fix: the calculation of dnode uptime (#31832) * migrate testcase * fix: correct timediff function bug and redress docs (#31798) * fix: enhance malloc configuration for taosd and taosadapter in install script * fix: TD-36442 show full condition (#31796) * enh/TD-36466-sync-heartbeat (#31805) * fix(plan) virtual table support BI moudle when use in select (#31787) * fix failed cases * enh: TS-5926-force-repair-wal (#31828) * migrate testcase * rename taos & taosd (#31855) * migrate testcase * migrate testcase * fix failed cases * fix: update environment file paths in taosd.service and set_taos_malloc.sh * feat: add performance tuning documentation for memory optimization and set_taos_malloc.sh usage * fix: update file paths in performance tuning documentation for consistency * feat: add performance tuning documentation for memory allocator configuration script * fix: add missing line breaks for improved readability in performance tuning documentation * fix: adjust heading levels for consistency in performance tuning documentation * fix cases * fix new_testcases * fix failed cases * fix(query): support show tags on virtual table (#31831) * fix failed cases * docs: replace mysql screenshot (#31888) * feat: use the new TDengine product name (#31859) * merge 3.0 * fix failed cases * fix failed cases * merge 3.0 * fix cases * fix cases * doc: Update 03-stream.md (#31675) * chore(deps): bump requests from 2.27.1 to 2.32.4 in /test (#31326) Bumps [requests](https://github.com/psf/requests) from 2.27.1 to 2.32.4. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.27.1...v2.32.4) --- updated-dependencies: - dependency-name: requests dependency-version: 2.32.4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix new cases * fix:Convert line endings from LF to CRLF for ans file * build(deps): bump golang.org/x/net in /tools/keeper (#30811) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0. - [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.38.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump urllib3 from 1.26.20 to 2.5.0 in /test (#31414) Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.20 to 2.5.0. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/1.26.20...2.5.0) --- updated-dependencies: - dependency-name: urllib3 dependency-version: 2.5.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump org.apache.tomcat.embed:tomcat-embed-core (#31392) Bumps org.apache.tomcat.embed:tomcat-embed-core from 9.0.104 to 9.0.106. --- updated-dependencies: - dependency-name: org.apache.tomcat.embed:tomcat-embed-core dependency-version: 9.0.106 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump org.apache.tomcat.embed:tomcat-embed-core (#31393) Bumps org.apache.tomcat.embed:tomcat-embed-core from 9.0.104 to 9.0.106. --- updated-dependencies: - dependency-name: org.apache.tomcat.embed:tomcat-embed-core dependency-version: 9.0.106 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump org.apache.kafka:kafka-clients (#31341) Bumps org.apache.kafka:kafka-clients from 3.9.0 to 3.9.1. --- updated-dependencies: - dependency-name: org.apache.kafka:kafka-clients dependency-version: 3.9.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: add lock when calculating log buffer start/end (#31883) * fix new cases * fix new cases * fix failed cases * feat: new stream (#31678) * fix: windows compile issue * test: add vtable cases (#31829) * fix: windows compile issues * test:add test cases * fix: windows compile issue * case: em-4 stream case submit * test: stream4_sub1 found bug2 * test: submit test_scene_meters_bug2.py * add stream parameters example * feat: [TS-6100] Do not translate const value as column. * Feat/ts 6100 3.0 zlv (#31747) * modify asan exampel * modify asan exampel * add example * add example * modify case example --------- Co-authored-by: zelv01 <1101510017@qq.com> * feat(stream): fix memory leak * modify sliding example * test: update test case. * feat(stream): fix conflicts * fix: add offset case 10a 10s 10m 10h 10d * feat(stream): fix conflicts * chore(stream): rename case name #TS-6100 * add case * modify example * fix: windows compile issues * fix: data null check * feat: [TS-6100] Forbid where when using %%trows (#31827) * feat: [TS-6100] Forbid where when using %%trows * test: update cases * feat: [TS-6100] Fix leaks. --------- Co-authored-by: Simon Guan <guanshengliang@qq.com> * test: reproduce bugs * test: update test case. * test: update test case. * feat: [TS-6100] Fix leaks. * test: add cases * Feat/ts 6100 3.0.pw10 (#31841) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue --------- Co-authored-by: huohong <sallyhuo@taosdata.com> * test: reproduce bugs * fix: add sliding interval combine case * test: add cases * test: add recalc test. * test: reproduce bugs * case : add vt ts is null check * modify case * bug: submit test_idmp_meters_bug3.py * test: add test for recalc. * test: add cases * fix: error code check * test: add cases * fix(stream): scan wal with schema in that version * add case * test: add cases * test: update test case. * fix: windows compile issues * add case * test: add cases (#31845) * modify case * fix: reset interpPrev * test: add test_idmp_meters bug4 and bug3 * add case * fix(stream): opti wal interface * fix: remove test_idmp_meters_bug5.py * test: add cases * fix(stream): fix ts data fetch for virtual tables * cancel asan case * test: update test case. * test: update test case. * add case * test: add cases * test: add cases * test: add case test_idmp_meters_bug5.py * test: update test case. * fix(stream): tmq error * test: add cases * feat: [TS-6100] Restore deleted code in mndSma.c since they are still in use. * fix(stream): optimize val scan logic * test: add test_recalc_expired_time.py to ci. * test: update test case. * test: update test case. * feat: [TS-6100] Fix fill range check * fix(stream): optimize val scan logic * add case * test: modify for partition by %%1 * test: add fun case stream4_sub7 * fix(stream): optimize val scan logic * add case * feat: [TS-6100] Rename OPTIONS to STREAM_OPTIONS. * test: add test for recalc. * test: use stream_options. * fix: some cases error. * test: remove recalc from ci. * fix: ci case issues (#31880) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue * fix: external window idx issue * fix: ci issues --------- Co-authored-by: huohong <sallyhuo@taosdata.com> * fix(stream): fix compilation error * fix(stream): optimize val scan logic * test:add test cases * test: modify case * fix: external agg error * test(stream): tobacco scene testing #TD-36514 * test: add stream cases (#31885) * fix: windows compile issue * fix: calc timerange * fix: windows compile issue * modify case * fix(stream): compile error * test: remove one debug test case file * test: modify * test: add test cases * test: reproduce bugs * test: reproduce bugs * feat: [TS-6100] Placeholder function should only appera in SELECT and… (#31868) * feat: [TS-6100] Placeholder function should only appera in SELECT and WHERE and FROM. * test: update case --------- Co-authored-by: Simon Guan <guanshengliang@qq.com> * add example * add example * modify case example * modify case * test:alter sql * test: add stream5 case * fix(stream): get schema error with version * test: add delete recalc test py. * test: remove bug cases * test: stream5 case test passed * test: add state cases (#31893) * fix(stream): compile error * test: modify case * test: add cases * test: add test. * test: update test case. * chore(test): fix case err * test: update test case. * fix: align data get * fix(stream): fix row index of datablock written into data cache * fix: put align data * test: update test case. * test: add test cases for virtual table * chore(test): fix case err #TD-36514 * add case * test: add test for water mark. * test: add meters bug6 for stream5 * test: add cases (#31903) * test: add test for recalc. * feat: [TS-6100] %%trows can only be used when event type is window close. * test: add precision of database for ms/us/ns * modify case * add case * add case * test: add test to ci. * modify case * fix: ci case issues (#31904) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue * fix: external window idx issue * fix: ci issues * fix: ci case issues * fix: drop dnode issue --------- Co-authored-by: huohong <sallyhuo@taosdata.com> * fix(stream): ci error * test: update test case. * feat: [TS-6100] Disable some failed UT. * feat: [TS-6100] Fix virtual table * test: add bug 5. * test: add test delete recalc to ci. * test: add bug 6. * test(stream): tobacco scene #TD-36514 * fix: reqCids,reqCols memory leak in SSTriggerRealtimeContext Co-authored-by: Tony Zhang <tonyzhang@taosdata.com> * test: add case stream6 * fix(stream): implement some pending features in trigger task * modify case * modify case * fix: case issues * modify case * test: add recalc for warter mark. * fix(stream): fix count window trigger of virtual tables * fix(stream): memory leak * test: fix run err. * test: add stream6 bug7 * fix: adjust format * test(stream): tobacco scene testing #TD-36514 * test: change bug7 with update window1 and 2 * test: add test bug 7. * case: restore write 3 window * fix: windows compile issue * fix: notify * test: add cases * modify case * test: update test case. * test(stream): toobacco scene testing #TD-36514 --------- Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: plum-lihui <huili@taosdata.com> Co-authored-by: Alex Duan <417921451@qq.com> Co-authored-by: zelv01 <1101510017@qq.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> Co-authored-by: xiangyang guo <66111494+happyguoxy@users.noreply.github.com> Co-authored-by: wangmm0220 <wangmm0220@gmail.com> Co-authored-by: Haojun Liao <hjliao@taosdata.com> Co-authored-by: zyyang90 <zyyang@taosdata.com> Co-authored-by: Alex Duan <51781608+DuanKuanJun@users.noreply.github.com> Co-authored-by: facetosea <285808407@qq.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Li Hui <52318143+plum-lihui@users.noreply.github.com> Co-authored-by: Jinqing Kuang <kuangjinqingcn@gmail.com> Co-authored-by: xiao-77 <berylbao@taosdata.com> Co-authored-by: Zhixiao Bao <62235797+xiao-77@users.noreply.github.com> Co-authored-by: happyguoxy <happy_guoxy@163.com> Co-authored-by: Tony Zhang <34825804+Tony2h@users.noreply.github.com> Co-authored-by: Tony Zhang <tonyzhang@taosdata.com> * test: rename TSDB * docs: fix rust examples (#31908) * docs: modify rust native test case * docs: modify rust ws test case * docs: modify rust examples * docs: update rust pool docs * fix new cases * migrate test case * feat: support reading sub table names and tag values from CSV files to create sub tables (#31909) * feat: add obtaining table names from tag files * feat: add write data table control * feat: add table params to write * feat: delete log file * feat: modify test case csv path * feat: resolve memory leakage in the table building thread * feat: resolve compilation errors * feat: resolve table name copy len error * feat: modify create table log level * feat: modifying query configuration parameter array out of bounds * feat: support custom primary key names * feat: modify log level * feat: add set primary key name case * feat: add column keywords case * feat: add keywords case data * feat: modify primaryKeyName value len * feat: modify primaryKeyName value define * feat: modify primaryKeyName value size * fix: compile issue (#31943) Co-authored-by: taos-support <it@taosdata.com> * package: fix error * package: fix error * fix failed cases * merge 3.0 * rename create_table_keywords.py to test_create_table_keywords.py * fix failed cases * fix new cases * docs: update stream (#31957) * docs: update jdbc out-dated descripiton (#31959) * fix: TD-36560 refactor arbitrator group function name and log (#31852) * feat: support BLOB data type (#31704) * rename 0-others/mounts.py to 0-others/test_mounts.py * fix failed cases * docs: update gpt (#31975) * fix failed cases * fix failed cases * package: fix error * feat: add taosBenchmark command line parameters (#31967) * feat: add command line parameters * feat: add command line parameter test cases * fix: tableName len error * enh: set TD Release build in tdengine-build.yml * Update tdengine-build.yml * fix: add json file path log * fix: streamline TD_CONFIG export in build steps * fix: Restore the build configuration --------- Co-authored-by: haoranchen <haoran920c@163.com> * fix: tableName len error (#31977) * fix: tableName len error * fix: modify TD_CONFIG=Release * fix: code format * fix: Restore the build configuration * enh: set TD Release build in tdengine-build.yml (#31980) * enh: set TD Release build in tdengine-build.yml * Update tdengine-build.yml * fix: update cache key for externals to include debug build version * fix: remove verbose flag from build commands in tdengine-build.yml * skip memleak cases * fix failed case * fix failed cases * package: fix error * fix(stmt2):tbname error output (#31997) * fix: possible memory leak (#31972) * feat: create connect add dbname params (#32002) * feat: create connect add dbname params * fix: connect param error * skip failed cases * fix cases on windows * fix cases * support connect bi mode and fix log level * unique sql connect username and password * fix log level * enh: mounted vnode may have no tq (#31916) * fix: subquery memleak (#32024) * fix failed case * fix cases * rename 2-query/test_insert_select.py to 2-query/test_system_insert_select.py * skip memleak cases * enh: rename data forecast/detect to forecasting/anomaly detection (#32021) * package: unique product name * package: update for main * skip tsim cases * chore: update jdbc connection pool validation query sql (#32056) * refactor: quotes usage in bash scripts Signed-off-by: WANG Xu <feici02@outlook.com> * enhn(mqtt/rawblock): new format for msg payload (#31801) * fix: fix broken link in 14-stream.md * docs: 15-spark.md is missing end semicolon (#32068) * chore: bump dev version to 3.3.7.0.alpha (#32066) * fix: blob test (#32020) * fix blob query error * fix blob query error * fix blob query error * fix blob query error * fix blob query error * opt query * opt write * opt write * opt write * opt bse * opt write * opt write * opt write * opt write * opt write * opt write * opt write * opt write * opt write * opt write * opt write * opt write * opt write * add cache * opt query * opt query * opt bse * add data iter * add data iter * add more compress * add more compress * add more compress * add more compress * add more compress * add more compress * opt blob transfer * opt blob transfer * opt blob transfer * opt write * avoid unordered data write * avoid unordered data write * opt read * refactor log * fix invalid write * refactor code * fix merge error * fix merge error * add error code * support blob type len * support blob type len * support blob type len * support blob type len * support blob type len * support blob type len * support blob type len * support blob type len * support blob type len * support blob type len * Merge remote-tracking branch 'origin/3.0' into enh/blob * refactor code * support blob type len * refactor code * refactor code * benchmark support blob type * benchmark support blob type * add log * handle sort and merge row * change file set * change file set * change file set * change file set * change file set * change file set * change file set * opt code * opt read * add restart error and add unit test * add restart error and add unit test * add restart error and add unit test * add restart error and add unit test * add restart error and add unit test * refactor code * add restart error and add unit test * opt code * refactor code * fix invalid write * blob test * blob test * blob test * blob test * blob test * support blob * add str trim * add str trim * Merge remote-tracking branch 'origin/3.0' into feat/blob * Merge remote-tracking branch 'origin/3.0' into feat/blob * update test case * fix invalid read * fix invalid read * fix invalid read * add stmt2 * add stmt2 * add stmt2 * update parameter * refactor test case * refactor test case * support blob * support stmt2 * add sub * support blob * support blob * support sub * fix tmq crash * support windows/darwin * fix stmt2 bind row * fix blob crash * fix blob crash * fix blob query error * fix blob crash * fix merge error * refactor bse * add blob transfer * add blob transfer * add transfer snapshot * refactor code * change log level * change log level * add test case * refactor code * revert taosBenchmark * revert taosbench * fix: improve error handling and encoding for file reading in grep_asserts_in_file function * rm assert * fix mem leak * fix compile error * fix conflict * fix conflict * fix compile error * fix compile error * fix pre check error * fix pre check error * fix compile error on windows * fix error on window * fix error on windows * fix error on windows * opt no-blob sql * fix compile error on dawain * fix compile error on dawain * fix invalid read * fix mem leak * fix invalid read * fix invalid read * fix error on windows * remove unused code * refactor code * fix mem leak * fix mem leak * rm unused code * rm unused code * fix invalid copy * fix invalid copy * fix invalid copy * fix invalid copy * fix invalid copy * refactor code * make ci happy * refactor code * change make * update test case * update ignore code * update bse snapshot and test case * update bse snapshot and test case * refactor code * change unit test * update bse snapshot * update bse snapshot * fix test case * fix bse snapshot * fix bse snapshot * fix snapshot transfer * remove unused log * support func query * add test case * forbidden unsupport code * merge 3.0 * merge 3.0 * change test case * add forbidden code * add forbidden code * add code * support length func * support length func * taosBenchmark support blob * support blob raw block * support write raw block * support more query * Merge branch 'feat/blob' into feat/blob_test * SBlobRow2 * change bse commit change * refactor code * rm exe test * refactor code * checke return code * rename blob name * refactor code * refactor code * refactor code * refactor code * fix unordere write * fix unordere write * fix row merge error * fix row merge error * fix row merge error * fix row merge error * support ordered data * support ordered data * Merge remote-tracking branch 'origin/3.0' into feat/blob_test * fix stmt2 blob crash * add not support write type * add not support write type * add not support write type * rm exe * fix col-formate error * fix col-formate error * fix mem leak * refactor code * add error code for single blob column restriction and update error message * add error code for single blob column restriction and update error message * add error code for single blob column restriction and update error message * refactor code * change error code * make ci happy --------- Co-authored-by: yihaoDeng <yhdeng@taosdata.com> Co-authored-by: chenhaoran <haoran920c@163.com> * package: update for main (#32091) * fix compile error on windows (#32089) * fix: source code merge issues --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: WANG Xu <feici02@outlook.com> Co-authored-by: minhuinie <nminhui@163.com> Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: chenhaoran <haoran920c@163.com> Co-authored-by: Nie Minhui <143420805+minhuinie@users.noreply.github.com> Co-authored-by: Mario Peng <48949600+Pengrongkun@users.noreply.github.com> Co-authored-by: Haojun Liao <hjxilinx@users.noreply.github.com> Co-authored-by: dongming chen <cademfly@hotmail.com> Co-authored-by: Linhe Huo <linhehuo@gmail.com> Co-authored-by: huohong <346479823@qq.com> Co-authored-by: Joel Brass <joel@jbrass.com> Co-authored-by: WANG Xu <feici02@outlook.com> Co-authored-by: Hongze Cheng <hzcheng@taosdata.com> Co-authored-by: Tony Zhang <34825804+Tony2h@users.noreply.github.com> Co-authored-by: Tony Zhang <tonyzhang@taosdata.com> Co-authored-by: Kaili Xu <klxu@taosdata.com> Co-authored-by: Zhixiao Bao <62235797+xiao-77@users.noreply.github.com> Co-authored-by: WANG MINGMING <wangmm0220@gmail.com> Co-authored-by: hongzhenliu <wluckyjob@gmail.com> Co-authored-by: Daniel Clow <106956386+danielclow@users.noreply.github.com> Co-authored-by: She Yanjie <57549981+sheyanjie-qq@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: plum-lihui <huili@taosdata.com> Co-authored-by: Alex Duan <417921451@qq.com> Co-authored-by: zelv01 <1101510017@qq.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> Co-authored-by: xiangyang guo <66111494+happyguoxy@users.noreply.github.com> Co-authored-by: Haojun Liao <hjliao@taosdata.com> Co-authored-by: zyyang90 <zyyang@taosdata.com> Co-authored-by: Alex Duan <51781608+DuanKuanJun@users.noreply.github.com> Co-authored-by: facetosea <285808407@qq.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: Li Hui <52318143+plum-lihui@users.noreply.github.com> Co-authored-by: Jinqing Kuang <kuangjinqingcn@gmail.com> Co-authored-by: xiao-77 <berylbao@taosdata.com> Co-authored-by: happyguoxy <happy_guoxy@163.com> Co-authored-by: guozhenwei <2227465945@qq.com> Co-authored-by: kevin men <men_shi_bin@163.com> Co-authored-by: taos-support <it@taosdata.com> Co-authored-by: Yihao Deng <luomoxyz@126.com> Co-authored-by: Minglei Jin <49711132+stephenkgu@users.noreply.github.com> Co-authored-by: yihaoDeng <yhdeng@taosdata.com> * test: add cases (#32102) * test: add old cases (#32101) * test: modify old case * add case * test: remove ts-5617. * test: add case bug6 for vehicle * add case * add case * test: modify old case * fix: merge issue * test: migrate test_interval.py. * fix: row merge strategy * test(stream): photovoltaic scene add ci #TD-36783 * test(stream): fix case #TD-36783 * test: add old cases (#32110) * test: update test case. * test: add use case * test: update test case. * test: update test case. * test: update test case. * fix: windows compile issue * test: modify for format * test(stream): fix ci warning #TD-36783 * test(stream): fix #TD-36514 * fix(stream): pass processOneBlock=true to vnodeProcessStreamFetchMsg when fetch data from virtual table to avoid heap use after free * fix: output tbname contains a dot * test(stream): fix ci warning #TD-36514 * test(stream): fix ci warning #TD-36887 * test: modify notes format * add case * test(stream): fix ci #TD-36514 * enh: support count like functions in ext window (#32082) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue * fix: external window idx issue * fix: ci issues * fix: ci case issues * fix: drop dnode issue * fix: add debug log * fix: conflict * fix: create stream if not exists issue * fix: ahandle memory leak * fix: case issue * fix: exchange issues * fix: crash issue * fix: exchange prefetch issue * fix: snode quit issue * enh: support indef rows func * fix: crash issues * Fix external window collect vector function * fix: external window indef rows issues * fix: external window issue * enh: support count always return value in external window * fix: force output when has more result block * fix: runner block retrieve issue * fix: crash issue * fix: count cases issue --------- Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> Co-authored-by: facetosea <285808407@qq.com> * test(stream): fix ci warning #TD-36514 * modify example * test: update test case. * add case to ci (#32113) * add case to ci * modify example * fix: compile issues * test: add more test for stream. * feat: [TD-36624] Fix join table extract time range expr. * fix(stream): add missing fields in stream notification * test: add stream cases (#32129) * fix: error code check * feat: [TD-36624] Fix join table extract time range expr. * fix(stream): add log * modify example * feat: [TS-6100] Modify alter vtable test case * test: migrate test compatibility. * fix: ci check. * feat: [TS-6100] Fix leak * modify example * enh: external window support scalar (#32139) * enh: add operator reset func * fix: merge join reset issue * fix: memory issues * fix: add debug assert * fix: memory issues * fix: memory leak * fix: memory issues * fix taos log miss * fix: case issue * fix: case issue * fix: case issues * fix: drop dnode issue * fix: memory issues * fix: memory issues * fix: memory leak issues * fix: recalculate time range issue * fix: add debug log * fix: memory issues * fix: enable case asan * Update streamlist_for_ci.task * fix: case asan issue * fix: stream name issue * fix: external window compile issues * fix: deploy memory issue * fix: ahandle issue * fix: ahandle issue * fix: ahandle issue * fix: virtual table reader list issue * fix: log info * fix: msg error * fix: virtual table addr list issue * fix: memory issues * fix: memory leak issue * fix: memory issues * fix: memory free issues * fix: memory issues * fix: snode deploy issue * fix: mnode reader issue * fix: memory issues * fix: add debug test * enh: add ignore nodata trigger * fix: memory leaks * fix: configuration issue * fix: memory issue * fix: external window issue * fix: external window issues * fix: external window placeholder issue * fix: placeholder function init issues * fix: memory leak issue * fix: add debug log * fix: compile issues * fix: double free issue * fix: runner addr update issue * fix: msg rsp issue * fix: external window reset issue * fix: configuration issue * fix: deploy msg issue * fix: compile issue * fix: external window idx issue * fix: ci issues * fix: ci case issues * fix: drop dnode issue * fix: add debug log * fix: conflict * fix: create stream if not exists issue * fix: ahandle memory leak * fix: case issue * fix: exchange issues * fix: crash issue * fix: exchange prefetch issue * fix: snode quit issue * enh: support indef rows func * fix: crash issues * Fix external window collect vector function * fix: external window indef rows issues * fix: external window issue * enh: support count always return value in external window * fix: force output when has more result block * fix: runner block retrieve issue * fix: crash issue * fix: count cases issue * fix: reader deploy message issue * fix: task deploy issue * fix: external window scalar issue * fix: compile issue --------- Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> Co-authored-by: facetosea <285808407@qq.com> * feat: [TS-6100] Fix show create table/vtable * fix: tagsName --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: WANG Xu <feici02@outlook.com> Co-authored-by: Jing Sima <simondominic9997@outlook.com> Co-authored-by: Alex Duan <417921451@qq.com> Co-authored-by: zyyang90 <zyyang@taosdata.com> Co-authored-by: Zhixiao Bao <62235797+xiao-77@users.noreply.github.com> Co-authored-by: facetosea <285808407@qq.com> Co-authored-by: Li Hui <52318143+plum-lihui@users.noreply.github.com> Co-authored-by: Haojun Liao <hjliao@taosdata.com> Co-authored-by: Lv Ze <1101510017@qq.com> Co-authored-by: root <happy_guoxy@163.com> Co-authored-by: plum-lihui <huili@taosdata.com> Co-authored-by: xiao-77 <berylbao@taosdata.com> Co-authored-by: xiangyang guo <66111494+happyguoxy@users.noreply.github.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: Alex Duan <51781608+DuanKuanJun@users.noreply.github.com> Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: huohong <sallyhuo@taosdata.com> Co-authored-by: Zhiyu Yang <69311263+zyyang90@users.noreply.github.com> Co-authored-by: Jinqing Kuang <kuangjinqingcn@gmail.com> Co-authored-by: wangmm0220 <wangmm0220@gmail.com> Co-authored-by: Tony Zhang <34825804+Tony2h@users.noreply.github.com> Co-authored-by: minhuinie <nminhui@163.com> Co-authored-by: chenhaoran <haoran920c@163.com> Co-authored-by: Nie Minhui <143420805+minhuinie@users.noreply.github.com> Co-authored-by: Mario Peng <48949600+Pengrongkun@users.noreply.github.com> Co-authored-by: Haojun Liao <hjxilinx@users.noreply.github.com> Co-authored-by: dongming chen <cademfly@hotmail.com> Co-authored-by: Linhe Huo <linhehuo@gmail.com> Co-authored-by: huohong <346479823@qq.com> Co-authored-by: Joel Brass <joel@jbrass.com> Co-authored-by: WANG Xu <feici02@outlook.com> Co-authored-by: Hongze Cheng <hzcheng@taosdata.com> Co-authored-by: Tony Zhang <tonyzhang@taosdata.com> Co-authored-by: Kaili Xu <klxu@taosdata.com> Co-authored-by: hongzhenliu <wluckyjob@gmail.com> Co-authored-by: Daniel Clow <106956386+danielclow@users.noreply.github.com> Co-authored-by: She Yanjie <57549981+sheyanjie-qq@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: guozhenwei <2227465945@qq.com> Co-authored-by: kevin men <men_shi_bin@163.com> Co-authored-by: taos-support <it@taosdata.com> Co-authored-by: Yihao Deng <luomoxyz@126.com> Co-authored-by: Minglei Jin <49711132+stephenkgu@users.noreply.github.com> Co-authored-by: yihaoDeng <yhdeng@taosdata.com>
136 KiB
136 KiB
| 1 | taos> 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 | |
| 14 | taos> 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 | |
| 25 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts <= '2020-09-30 23:59:59' interval(1h, auto) limit 10; |
| 26 | taos> 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 | |
| 30 | taos> 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 | |
| 34 | taos> 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 | |
| 38 | taos> 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 | |
| 42 | taos> 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 | |
| 46 | taos> 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 | |
| 50 | taos> 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 | |
| 54 | taos> 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 | |
| 58 | taos> 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 | |
| 63 | taos> 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 | |
| 68 | taos> 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 | |
| 74 | taos> 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 | |
| 79 | taos> 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 | |
| 84 | taos> 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 | |
| 89 | taos> 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 | |
| 95 | taos> 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 | |
| 100 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-12 23:32:43' interval(1n, auto) limit 10; |
| 101 | taos> 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 | |
| 105 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-12 23:32:43') interval(1n, auto) limit 10; |
| 106 | taos> 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 | |
| 110 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts = '2020-11-12 23:32:43' interval(1n, auto) sliding(9d) limit 10; |
| 111 | taos> 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 | |
| 118 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts in ('2020-11-12 23:32:43') interval(1n, auto) sliding(13d) limit 10; |
| 119 | taos> 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 | |
| 125 | taos> 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 | |
| 138 | taos> 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 | |
| 151 | taos> 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 | |
| 164 | taos> 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 | |
| 168 | taos> 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 | |
| 181 | taos> 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 | |
| 194 | taos> 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 | |
| 207 | taos> 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 | |
| 211 | taos> 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 | |
| 217 | taos> 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 | |
| 223 | taos> 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 | |
| 229 | taos> 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 | |
| 235 | taos> 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 | |
| 248 | taos> 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 | |
| 261 | taos> 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 | |
| 274 | taos> 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 | |
| 279 | taos> 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 | |
| 292 | taos> 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 | |
| 305 | taos> 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 | |
| 318 | taos> 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 | |
| 323 | taos> 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 | |
| 330 | taos> 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 | |
| 339 | taos> 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 | |
| 349 | taos> 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 | |
| 357 | taos> 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 | |
| 363 | taos> 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 | |
| 368 | taos> 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 | |
| 372 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-19 01:23:00' interval(1n, auto) limit 10; |
| 373 | taos> 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 | |
| 379 | taos> 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 | |
| 384 | taos> 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 | |
| 388 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-19 01:23:00' interval(1n, auto) limit 10; |
| 389 | taos> 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 | |
| 395 | taos> 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 | |
| 408 | taos> 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 | |
| 418 | taos> 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 | |
| 425 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > '2020-12-19 01:23:00' interval(1n, auto) sliding(9d) limit 10; |
| 426 | taos> 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 | |
| 436 | taos> 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 | |
| 444 | taos> 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 | |
| 450 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts >= '2020-12-19 01:23:00' interval(1n, auto) sliding(13d) limit 10; |
| 451 | taos> 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 | |
| 464 | taos> 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 | |
| 474 | taos> 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 | |
| 478 | taos> 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 | |
| 482 | taos> 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 | |
| 486 | taos> 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 | |
| 490 | taos> 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 | |
| 495 | taos> 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 | |
| 500 | taos> 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 | |
| 506 | taos> 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 | |
| 511 | taos> 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; |
| 512 | taos> 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 | |
| 516 | taos> 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 | |
| 523 | taos> 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 | |
| 529 | taos> 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 | |
| 542 | taos> 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 | |
| 555 | taos> 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 | |
| 568 | taos> 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 | |
| 572 | taos> 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 | |
| 585 | taos> 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 | |
| 598 | taos> 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 | |
| 611 | taos> 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 | |
| 615 | taos> 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 | |
| 628 | taos> 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 | |
| 641 | taos> 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 | |
| 654 | taos> 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 | |
| 659 | taos> 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 | |
| 672 | taos> 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 | |
| 685 | taos> 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 | |
| 698 | taos> 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 | |
| 703 | taos> 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 | |
| 709 | taos> 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 | |
| 714 | taos> 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 | |
| 718 | taos> 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; |
| 719 | taos> 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 | |
| 725 | taos> 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 | |
| 730 | taos> 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 | |
| 734 | taos> 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; |
| 735 | taos> 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 | |
| 748 | taos> 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 | |
| 758 | taos> 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 | |
| 765 | taos> 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; |
| 766 | taos> 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 | |
| 776 | taos> 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 | |
| 784 | taos> 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 | |
| 790 | taos> 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; |
| 791 | taos> 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 | |
| 804 | taos> select _wstart, _wend, _wduration, count(*) from test.st where ts > i1 and ts <= bi2 interval(1d, auto) limit 10; |
| 805 | taos> 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 | |
| 811 | taos> 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 | |
| 815 | taos> 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 | |
| 821 | taos> 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 | |
| 826 | taos> 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 | |
| 839 | taos> 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 | |
| 852 | taos> 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 | |
| 865 | taos> 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 | |
| 878 | taos> 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 | |
| 891 | taos> 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 | |
| 904 | taos> 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 | |
| 917 | taos> 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 | |
| 930 | taos> 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 | |
| 943 | taos> 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 | |
| 956 | taos> 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 | |
| 969 | taos> 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 | |
| 982 | taos> 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 | |
| 995 | taos> 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 | |
| 1008 | taos> 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 | |
| 1021 | taos> 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 | |
| 1034 | taos> 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 | |
| 1047 | taos> 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 | |
| 1060 | taos> 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 | |
| 1073 | taos> 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 | |
| 1086 | taos> 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 | |
| 1099 | taos> 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 | |
| 1112 | taos> 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 | |
| 1125 | taos> 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 | |
| 1138 | taos> 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 | |
| 1144 | taos> 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 | |
| 1149 | taos> 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 | |
| 1155 | taos> 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 | |
| 1167 | taos> 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 | |
| 1178 | taos> 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 | |
| 1191 | taos> 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 | |
| 1201 | taos> 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 | |
| 1209 | taos> 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 | |
| 1220 | taos> 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 | |
| 1231 | taos> 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 | |
| 1237 | taos> 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 | |
| 1243 | taos> 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 | |
| 1249 | taos> 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 | |
| 1254 | taos> 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 | |
| 1260 | taos> 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 | |