TDengine/tests/script/tsim/parser
Pan Wei bcc25e56bc
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>
2025-07-16 14:42:16 +08:00
..
alter.sim modify test case 2024-09-11 09:43:55 +00:00
alter1.sim fix(query): set 0 when result is not qualified. 2023-01-10 23:40:16 +08:00
alter__for_community_version.sim modify test case 2024-09-11 09:43:55 +00:00
alter_column.sim chore: restore the test cases 2023-05-16 14:45:06 +08:00
alter_stable.sim fix: alter table check 2022-10-25 19:38:22 +08:00
auto_create_tb.sim fix(query): set correct status. 2022-11-08 00:23:40 +08:00
auto_create_tb_drop_tb.sim fix test cases 2022-08-11 16:50:45 +08:00
between_and.sim fix test cases 2022-08-11 16:50:45 +08:00
binary_escapeCharacter.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
col_arithmetic_operation.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
col_arithmetic_query.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
columnValue_bigint.sim test: test case for limit value 2024-03-18 00:23:49 +08:00
columnValue_bool.sim enh: integer with duration literal for timestamp 2024-03-31 20:50:02 +08:00
columnValue_double.sim chore: test case for insert syntax and fix of show tags for varbinary/geometry 2024-03-15 02:18:19 +08:00
columnValue_float.sim chore: test case for insert syntax and fix of show tags for varbinary/geometry 2024-03-15 02:18:19 +08:00
columnValue_geometry.sim test: tag/col insert syntax 2024-03-15 11:31:28 +08:00
columnValue_int.sim enh: integer with duration literal for timestamp 2024-03-31 20:50:02 +08:00
columnValue_json.sim test: tag/col insert syntax 2024-03-15 11:31:28 +08:00
columnValue_nchar.sim chore: test case for insert syntax and fix of show tags for varbinary/geometry 2024-03-15 02:18:19 +08:00
columnValue_smallint.sim fix: unify tag value parsing syntax 2024-03-10 22:14:57 +08:00
columnValue_timestamp.sim test: more test case for timestamp 2024-03-31 21:34:29 +08:00
columnValue_tinyint.sim fix: unify tag value parsing syntax 2024-03-10 22:14:57 +08:00
columnValue_uint.sim test: test case for limit value 2024-03-18 00:23:49 +08:00
columnValue_unsign.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
columnValue_varbinary.sim enh: integer with duration literal for timestamp 2024-03-31 20:50:02 +08:00
columnValue_varchar.sim enh: integer with duration literal for timestamp 2024-03-31 20:50:02 +08:00
commit.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
condition.sim fix test cases 2022-08-11 16:50:45 +08:00
condition_query.sim fix order by ambiguous case 2024-01-17 11:10:13 +08:00
condition_scl.sim fix: restore scalar mode computation and add filterScalarMode config variable and add test case 2023-05-26 14:46:32 +08:00
constCol.sim test: restore 2.0 case 2022-07-21 14:01:21 +08:00
create_db.sim modify test case 2024-09-11 09:43:55 +00:00
create_mt.sim fix: unify tag value parsing syntax 2024-03-10 22:14:57 +08:00
create_tb.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
create_tb_with_tag_name.sim fix test cases 2022-08-11 16:50:45 +08:00
dbtbnameValidate.sim fix test cases 2022-08-11 16:50:45 +08:00
distinct.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
fill.sim add test cases 2023-07-21 11:10:48 +08:00
fill_stb.sim enh: fill value supports implicit type conversion 2022-11-17 15:48:42 +08:00
fill_us.sim enh: fill value supports implicit type conversion 2022-11-17 15:48:42 +08:00
first_last.sim fix test cases 2022-08-11 16:50:45 +08:00
first_last_query.sim fix test cases 2022-08-11 16:50:45 +08:00
fourArithmetic-basic.sim enh: show command optimize 2022-08-11 20:56:31 +08:00
function.sim fix(query): fix error in fill. 2023-06-01 18:25:05 +08:00
gendata.bat test: fix mnode leader follower order error 2022-07-23 16:36:02 +08:00
gendata.sh test: restore case 2022-07-22 14:59:26 +08:00
groupby-basic.sim test:update the test cases. 2022-12-01 17:45:33 +08:00
groupby.sim fix: preallocated columns does not have data 2024-01-26 10:55:14 +08:00
having.sim fix test cases 2022-08-11 16:50:45 +08:00
having_child.sim fix: _group_key not select 2025-02-21 00:40:11 +08:00
import.sim fix test cases 2022-08-11 16:50:45 +08:00
import_commit1.sim fix test cases 2022-08-11 16:50:45 +08:00
import_commit2.sim fix test cases 2022-08-11 16:50:45 +08:00
import_commit3.sim merge 3.0 2022-08-11 20:30:02 +08:00
import_file.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
insert_multiTbl.sim test:fix invalid test cases. 2022-08-09 10:17:48 +08:00
insert_tb.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
interp.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
interp_test.sim test: refine query cases 2022-11-15 16:55:34 +08:00
join.sim fix: case issues 2024-03-22 15:15:07 +08:00
join_manyblocks.sim fix: add test case 2023-05-18 16:26:20 +08:00
join_multitables.sim fix: join condition push down issue 2023-08-16 14:28:39 +08:00
join_multivnode.sim fix test cases 2022-08-11 16:50:45 +08:00
last_both.sim fix(tsdb/cache): fix invalid param caused by column mismatching 2024-12-13 11:54:28 +08:00
last_both_no_ts.tsim fix(tsdb/cache): fix invalid param caused by column mismatching 2024-12-13 11:54:28 +08:00
last_both_query.sim fix(tsdb):fix invalid return code. 2024-07-23 19:16:06 +08:00
last_cache.sim test: add flush database in tsim/parser/last_cache.sim and limit1.sim 2023-04-12 19:01:02 +08:00
last_cache_query.sim fix(test/last_both): remove last_row query 2024-03-04 09:53:49 +08:00
last_groupby.sim fix test cases 2022-08-11 16:50:45 +08:00
lastrow.sim fix test cases 2022-08-11 16:50:45 +08:00
lastrow2.sim test: add case 2022-07-23 20:58:57 +08:00
lastrow_query.sim Merge pull request #18592 from taosdata/feature/3_liaohj 2022-12-02 21:00:35 +08:00
like.sim enh: like supported on show views 2024-02-19 13:10:27 +08:00
limit.sim fix: limit error 2023-09-24 22:31:40 +08:00
limit1.sim test: add flush database in tsim/parser/last_cache.sim and limit1.sim 2023-04-12 19:01:02 +08:00
limit1_stb.sim feature: optimize order by limit using priority queue 2023-06-27 17:50:50 +08:00
limit1_tb.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
limit2.sim fix test cases 2022-08-11 16:50:45 +08:00
limit2_query.sim test: refine query cases 2022-11-18 14:23:42 +08:00
limit_stb.sim fix: whole block error 2024-01-23 10:45:26 +08:00
limit_tb.sim fix test cases 2022-08-11 16:50:45 +08:00
mixed_blocks.sim adjust case 2023-12-22 18:14:26 +08:00
nchar.sim feat:[TS-4893] Add random and support use min/max on string column. 2024-09-09 18:48:24 +08:00
nestquery.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
null_char.sim test: tag/col insert syntax 2024-03-14 17:13:56 +08:00
precision_ns.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
projection_limit_offset.sim fix test cases 2023-05-31 16:26:23 +08:00
README.txt fix test cases 2022-08-11 16:50:45 +08:00
regex.sim fix test cases 2022-08-11 16:50:45 +08:00
regressiontest.sim Merge pull request #19870 from taosdata/feature/3_liaohj 2023-02-15 12:55:04 +08:00
repeatAlter.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
select_across_vnodes.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
select_distinct_tag.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
select_from_cache_disk.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
select_with_tags.sim fix: tupleData 2024-07-22 20:26:55 +08:00
selectResNum.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 01:41:27 +08:00
set_tag_vals.sim fix test cases 2022-08-11 16:50:45 +08:00
single_row_in_tb.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
single_row_in_tb_query.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:13:33 +08:00
sliding.sim fix: sliding case issue 2023-05-29 08:50:57 +08:00
slimit.sim fix test cases 2022-08-11 16:50:45 +08:00
slimit1.sim fix test cases 2022-08-11 16:50:45 +08:00
slimit1_query.sim fix: fix no group slimit issue and test cases 2023-03-22 17:14:45 +08:00
slimit_alter_tags.sim fix(query): fix invalid read/write. 2022-09-02 14:34:30 +08:00
slimit_limit.sim feat: correct slimit&limit clause 2023-03-11 13:08:20 +08:00
slimit_query.sim fix: some problems of parser 2022-08-29 18:52:00 +08:00
stableOp.sim enh: show command optimize 2022-08-11 21:55:20 +08:00
table_merge_limit.sim fix: table merge scan limit issue 2023-03-22 08:55:43 +08:00
tags_dynamically_specifiy.sim fix test cases 2022-08-11 16:50:45 +08:00
tags_filter.sim feat: new stream (#31678) 2025-07-16 14:42:16 +08:00
tbnameIn.sim fix test cases 2022-08-11 16:50:45 +08:00
tbnameIn_query.sim fix test cases 2022-08-11 16:50:45 +08:00
timestamp.sim fix test cases 2022-08-11 16:50:45 +08:00
timestamp_query.sim fix: some problems of parser 2022-08-29 18:52:00 +08:00
top_groupby.sim fix test cases 2022-08-11 16:50:45 +08:00
topbot.sim test: restore 2.0 case 2022-07-20 21:01:47 +08:00
ts-6314.sim fix: tables with a composite primary key of type varchar may have incorrect counts of projected results when sorted. 2025-04-11 15:44:34 +08:00
union.sim feat: new stream (#31678) 2025-07-16 14:42:16 +08:00
union_sysinfo.sim docs: update arch 2022-07-29 17:26:57 +08:00
where.sim test:reduce to 1000 rowNumbers per tables in testcases 2023-03-15 11:49:02 +08:00

This file contains a brief info about the parser test scripts directory.

The directory contains scripts for TDengine parser testing, mainly focus on syntax parsing and datatype support. The tests are organized in the way database languages are catagorized.

DML:
{
SELECT
INSERT
INTERVAL
FILL
DESCRIBE
SHOW
}

DDL:
{
CREATE DATABASE/METRIC/TABLE
DROP DATABASE/METRIC/TABLE
}

DCL:
{
CREATE ACCOUNT/USER
DROP ACCOUNT/USER
*ALTER USER PRIVILEGE
}