TDengine/tests/script/tsim/query
Minglei Jin 66c4ef3e90
feat(mqtt): mqtt subscription (#30127)
* feat(mqtt): Initial commit for mqtt

* chore(xnode/mnd): xnode message handlers for mnode

* chore(mnd/xnode): mnode part for xnode

* chore(xnode/translater): fix show commands

* fix(ast/creater): fix xnode create option

* fix(xnode/ci): fix ci & doc's error codes

* chore(xnode/sql): make create/drop/show work properly

* fix(xnode/sql): commit new files

* fix(xnode/sql): commit cmake files

* fix: fix testing cases

* fix(xnode/tsc): fix tokens

* fix(ast/anode): fix anode update decl.

* fix(xnode/error): fix xnode error codes

* fix: xnode make/destroy

* chore: xnode with option & dnode id

* chore: use taosmqtt for xnode

* chore: new error code for xnode launching

* chore(xnode): new error code

* chore: header for _xnode_mgmt_mqtt

* chore: source for _xnode_mgmt_mqtt

* chore: remove test directory from cmake

* chore: remove taosmqtt for ci to compile

* chore: remove taosudf header from xnode

* chore: new window macro

* chore: remove xnode mgmt mqtt for windows compilation

* Revert "chore: remove xnode mgmt mqtt for windows compilation"

This reverts commit 197e1640c7.

* chore: cleanup code

* chore: xnode mgmt comment windows part out

* chore: mgmt/mqtt, move uv head toppest

* xnode/mnode: create xnode once per dnode

* fix(xnode/systable/test): fix column count

* xnode/sdb: renumber sdb type for xnode to make start/stop order correct

* xnode/mqtt: new param mqttPort

* fix SXnode's struct type

* transfer dnode id to mqtt subscription

* tmqtt: remove uv_a linking

* tmqtt/tools: sources for tools

* tools: fix windows compilation

* tools/producer: fix windows sleep param

* tools/producer: fix uninited var rc

* make tools only for linux

* test/mnodes: wail 1 or 2 seconds for offline to be leader

* update topic producer tool for geometry data type testing

* format tool sql statements

* show xnodes' ep

* make shell auto complete xnodes

* use usleep instead of sleep

* mqtt/proto: first version mqtt protocol

* remove assert styles

* build with linux only

* fix libuv for taosmqtt building

* fix log printing

* mem: use ttq_ prefix instead of tmqtt

* xnode/parser/proto: protocol option for xnode

* xnode/translater/option: translate xnode option proto

* xnode/translator: translate proto param

* xnode/tmsg: encode/decode proto param

* xnode/mnode: proto parma for mndXnode

* xnode/proto: protocol param for xnode

* xnode/mqtt: save/load proto from xnode json

* rename tmqtt proto header

* rename head directories

* rename header name styles

* restyle func names

* update

* update

* use camel db

* use camel for cxt

* update count of information_schema

* fix exceptional cases

* fix w.r.t reviews

* fixes w.r.t reviews

* use ttq_free

* append xnode msgs

* update information schema count

* support tmq meta data sub

* success typo fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix error line var w.r.t. suggestions from copilot

* denote mqtt node with bnode instead of xnode

* smoke testing for mqtt

* soak testing

* new package for test framework: paho 2.1.0

* import mqtt into util

* fix soak testing

* test/soak: user 5 topics per client

* test/soak: cover qos

* update docker image references to tdengine-ci:0.1 in CI scripts and common.py

* refactor: rename bnode msg to backup node

* refactor: rename xnode to bnode 1

* refactor: rename xnode to bnode 2

* refactor: rename xnode to bnode 3

* refactor: rename xnode to bnode 4

* refactor: rename xnode to bnode 4

* refactor: rename xnode to bnode 5

* refactor: rename xnode to bnode 6

* refactor: rename some files 1

* refactor: rename some files 2

* refactor: rename some files 3

* refactor: rename some files 4

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: chenhaoran <haoran920c@163.com>
Co-authored-by: Simon Guan <guanshengliang@qq.com>
2025-06-25 14:58:51 +08:00
..
r add test cases 2023-09-05 10:29:20 +08:00
t add test cases 2023-09-05 10:29:20 +08:00
apercentile.sim fix: apercentile parameter validation and result error 2023-09-27 16:08:06 +08:00
bi_star_table.sim add config 2024-04-11 16:48:58 +08:00
bi_tag_scan.sim fix: add test case for bi tag scan 2023-10-30 10:11:57 +08:00
bi_tbname_col.sim fix: bi mode create tbname col error 2023-11-23 11:18:05 +08:00
bug3398.sim fix: select <expr1>, <expr1##sth else> from ... return error data when strlen(expr1) > TSDB_COL_NAME_LEN 2023-05-16 15:42:30 +08:00
cache_last.sim fix: show create table and desc table statements return composite key instead of primary key (#30830) 2025-04-19 13:32:34 +08:00
cache_last_tag.sim add ci 2024-04-11 18:16:24 +08:00
charScalarFunction.sim fix(query): check the trimmed string length before memcpy. (#31366) 2025-06-14 16:09:47 +08:00
complex_group.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
complex_having.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
complex_limit.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
complex_select.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
complex_where.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
const.sim fix: const value replace issue 2023-11-09 14:49:04 +08:00
count_spread.sim fix test case 2024-04-03 17:26:51 +08:00
crash_sql.sim docs: updagte taos shell as TDengine CLI for 3.0 version ,include in taos.cfg 2022-08-26 18:38:04 +08:00
delete_and_query.sim fix: select desc and asc return different rows after delete 2023-06-05 17:44:34 +08:00
diff.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
emptyTsRange.sim fix: empty ts range query issue 2023-02-24 18:39:17 +08:00
emptyTsRange_scl.sim fix: restore scalar mode computation and add filterScalarMode config variable and add test case 2023-05-26 14:46:32 +08:00
event.sim fix(query):seset group id for the results of event and count operators 2024-08-22 11:11:40 +08:00
explain.sim fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
explain_tsorder.sim feature: add input, output ts order for execution plans 2023-06-16 10:26:09 +08:00
forceFill.sim Merge remote-tracking branch 'origin' into feat/TS-2502 2023-02-06 17:22:18 +08:00
groupby.sim fix: duplicated groups result in group by 2022-12-23 12:04:20 +08:00
groupby_distinct.sim fix: distinct wrong result issue 2023-05-18 17:41:01 +08:00
interval-offset.sim test/duration: fix duration values 2024-10-24 10:42:39 +08:00
interval.sim fix: calander interval and sliding issue 2024-08-02 14:38:55 +08:00
join.sim fix: add merge join operator result limitation 2023-02-21 08:54:05 +08:00
join_interval.sim fix: add test case for interval after join 2023-03-30 08:54:00 +08:00
join_order.sim fix: join order by not work issue 2024-02-02 10:38:09 +08:00
join_pk.sim fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
multi_order_by.sim fix: select * from (select * from t order by ts desc) order by ts 2023-04-10 14:03:56 +08:00
multires_func.sim add test cases 2023-09-05 10:29:20 +08:00
nestedJoinView.sim fix: case when memory leak 2024-06-11 15:28:04 +08:00
nullColSma.sim fix: some columns sma are not set issue 2023-03-24 15:20:27 +08:00
partitionby.sim fix(query): fix error in fill and partition. 2023-06-01 14:36:42 +08:00
query_count0.sim fix count window issue 2024-02-29 11:30:16 +08:00
query_count1.sim fix(query):seset group id for the results of event and count operators 2024-08-22 11:11:40 +08:00
query_count_sliding0.sim fix count window issue 2024-02-29 11:30:16 +08:00
read.sim test: valgrind case 2022-07-27 11:10:54 +08:00
scalarFunction.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
scalarNull.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
session.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
show_db_table_kind.sim fix: internal error when show normal db.tables like pattern 2023-09-28 09:20:12 +08:00
sort-pre-cols.sim fix: add test case 2023-12-21 16:52:27 +08:00
stddev.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
sys_tbname.sim feat(mqtt): mqtt subscription (#30127) 2025-06-25 14:58:51 +08:00
tableCount.sim feat(mqtt): mqtt subscription (#30127) 2025-06-25 14:58:51 +08:00
tag_scan.sim fix: select tags const from table 2023-11-07 15:47:36 +08:00
tagLikeFilter.sim fix: tag like filter issue 2023-02-25 16:04:21 +08:00
time_process.sim Merge branch '3.0' into fix/TD-18617 2022-08-25 11:14:05 +08:00
timeline.sim fix: add timeline test cases 2024-05-27 14:53:30 +08:00
udf.sim enh: add password character rules 2024-12-10 11:08:58 +00:00
udf_with_const.sim fix: udf error check 2023-03-23 16:32:00 +08:00
udfpy.sim fix: remove udfpy.sim pycumsum part 2023-05-26 13:10:49 +08:00
union_precision.sim fix: union precision issue 2024-04-12 11:07:26 +08:00
unionall_as_table.sim enhance: enhance test 2023-10-19 11:17:00 +08:00