Commit graph

591 commits

Author SHA1 Message Date
Peng Rongkun
1af59324f4
feat: implement SHOW CREATE STREAM statement (#35158)
Some checks are pending
TDengine Release Build / Run on macos-14 (push) Waiting to run
TDengine Release Build / Run on ubuntu-22.04 (push) Waiting to run
2026-05-16 20:39:39 +08:00
Kaili Xu
fde63d139e
feat(mac): sod mandatory and mac[manual-only] (#35121) 2026-04-22 20:26:42 +08:00
dongming chen
9eb653a33f
feat: restore on one vnode (#34984) 2026-03-30 18:31:43 +08:00
Mario Peng
25a76f0496
enh:stream nodelay create out table (#34954) 2026-03-29 11:22:27 +08:00
Jinqing Kuang
27a537829b
feat(query): support external windows (#34933) 2026-03-29 09:38:08 +08:00
guichuan zhang
4c970bbef0
fix(xnode): support granting system privileges to xnode/agent and object privileges to xnode tasks (#34901)
Closes [6658956251](https://project.feishu.cn/taosdata_td/feature/detail/6658956251)
2026-03-25 08:57:26 +08:00
Jinqing Kuang
b9eb340111
feat(stream): implement idle trigger for stream partitions (#34902)
- Add IDLE_TIMEOUT(duration_time) option to STREAM_OPTIONS for
  configuring partition idle detection (valid range: [1s, 10d])
- Add IDLE and RESUME event types to EVENT_TYPE option
- Track per-partition last-receive time using monotonic clock to
  detect idle state transitions (ACTIVE -> IDLE -> ACTIVE)
- Trigger IDLE event once when a partition exceeds idle timeout;
  trigger RESUME event immediately when idle partition receives data
- Provide _tidlestart/_tidleend placeholders for idle/resume
  computation SQL (ns precision; incompatible with _twstart/_twend)
- Add idle/resume fields to notification payload: idleStart,
  idleEnd, idleDurationMs; IDLE and RESUME share the same triggerId
- Add system test: test/cases/18-StreamProcessing/04-Options/
  test_idle_trigger.py covering basic detection, resume, multiple
  partitions, timeout config, placeholder values, event combinations
- Update zh/en SQL reference and advanced-usage docs; add IDLE,
  IDLE_TIMEOUT, RESUME to reserved keywords list (3.3.4.0+)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 10:14:40 +08:00
Yihao Deng
43dca0dae9
enh: add reference verification capabilities between virtual tables and source tables, including reference relationship storage, source table change verification, reference relationship query and virtual table availability verification functions (#34740) 2026-03-21 11:49:50 +08:00
Zhixiao Bao
d0c6d74502
feat: last cache shard-bits (#34857) 2026-03-20 13:56:20 +08:00
Bomin Zhang
1138439542
feat: batch tag value update (#34564) 2026-03-18 14:19:15 +08:00
Zhixiao Bao
e29fadda2e
feat: support secure delete option. (#34591) 2026-03-16 20:26:22 +08:00
Simon Guan
b8f11c5912 fix: conflicts 2026-03-12 09:41:15 +08:00
Kaili Xu
0435899ec4
enh: support grammar of 3.3[manual-only] (#34743) 2026-03-11 14:13:00 +08:00
Simon Guan
da5637c06a Merge branch 'main' into merge/mainto3.0 2026-03-06 19:16:55 +08:00
Haojun Liao
156da4e68f
feat(TDgpt): support multiple input data columns for anomaly detection. (#34606) 2026-03-06 17:48:39 +08:00
Kaili Xu
45c0826791
fix: privilege, error prompt and memory leak (#34675) 2026-03-06 16:04:33 +08:00
Pan Wei
30c4ea4986
feat: support any/some/all/exists with subqueries (#34632) 2026-03-06 14:45:30 +08:00
wangmm0220
7ce68a3f23 fix(taosd): conflicts from main 2026-02-06 11:21:26 +08:00
Kaili Xu
0713c22872
fix(rbac): refactor docs, permission error, db owner and audit table[manual-only] (#34498) 2026-02-05 16:14:02 +08:00
Zhixiao Bao
7cf18bb71a
fix: cases cases/11-Functions/01-Scalar/test_scalar_crypto.py failed. (#34508) 2026-02-05 14:49:48 +08:00
Tony Zhang
2e4b4bc62e
feat: support surrounding time for fill (#34414) 2026-02-05 11:33:28 +08:00
Zhixiao Bao
b491a2c7da
fix: parse error while use NUL without quote. (#34474) 2026-02-04 11:06:32 +08:00
guichuan zhang
5ce61e1f29
feat[manual-only]: support token auth when creating XNODE (#34419)
* feat(xnode): support token auth when creating XNODE

Closes [6725312703](https://project.feishu.cn/taosdata_td/feature/detail/6725312703)

* chore: clean code & fix xnode transactions issues

* chore: fix alter xnode job memory leak

* fix: update workflow reference to use specific commit for new framework test

---------

Co-authored-by: chenhaoran <haoran920c@163.com>
2026-01-30 15:40:11 +08:00
Simon Guan
7028cb234e fix: conflicts 2026-01-30 10:28:30 +08:00
Jinqing Kuang
6defccb35a
feat(stream): support true for row count limit (#34342) 2026-01-29 14:54:28 +08:00
Kaili Xu
b3e56f99ae
enh(rbac): access control (#34259) 2026-01-28 19:06:16 +08:00
Zhixiao Bao
c613cdbf10
feat: support alter key expiration time. (#34390) 2026-01-28 17:16:11 +08:00
Pan Wei
b772a5d7f3
feat: support IN/NOT IN with subquery (#34290) 2026-01-22 13:39:05 +08:00
Mario Peng
aa92fbf5fb
enh:stmt support interval opt (#34354) 2026-01-21 14:06:49 +08:00
guichuan zhang
cbfa5e03d5
enh(xnode): support where condition for show xnode task/job/agent clause (#34315)
* enh(xnode): support where condition for show xnode task/job/agent clause

Closes [6672740298](https://project.feishu.cn/taosdata_td/feature/detail/6672740298)

* chore: support where clause for drop xnode job

* chore: optimize search xnoded exec file
2026-01-20 20:35:57 +08:00
guichuan zhang
03b70995bb
feat(taosx): support xnode agent management sql (#34224)
* feat(taosx): support xnode agent management sql

Closes [6646814636](https://project.feishu.cn/taosdata_td/feature/detail/6646814636)

* fix some memory leak

* chore: fix windows can't find openssl header file

* chore: fix memory in xnode agent module

* chore: fix and job memory leak

* docs: add error code and agent management docs

* chore: change the order of QUERY_NODE_ALTER_XNODE_AGENT_STMT
2026-01-12 20:15:37 +08:00
Bomin Zhang
ae65a5629b
enh: update keyword list (#34177) 2026-01-06 13:36:36 +08:00
Bomin Zhang
56bea7d81a
feat: support create/drop totp_secret statement (#34162) 2026-01-06 09:28:58 +08:00
guichuan zhang
2c62466aa0
feat(taosx): support distributed taosx (#34126)
* feat: add xnode syntax

* refactor(xnode): reduce function complexity

* chore: add lost xnode.h file

* feat(xnode): create xnode task

* chore: fix double free error

* add xnoded

* start xnoded as subprocess

* complete xnode task feature

* complete show xnode jobs feature

* complete with option feature

* complete alter xnode job feature

* complete alter xnode task feature

* complete user pass feature

* clean code

* modify status type as char

* fix leader ep null

* fix start task req null

* fix pass id for status

* support timeout msg

* drop xnode task relative jobs

* clean code

* wip

* chore: add test cases for xnode

* chore: fix 3.0 merge changes

* fix drain core dump and create task core dump

* add password check

* retrieve xnode status from xnoded

* pass integer as double to cjson

* add some debug log

* add some job log

* fix start task lock

* do not handle http response

* fix coredump drop xnode task by name

* support start/stop/drop task by name

* remove mock xnoded

* support unix socket

* kill pre-xnoded before start

* support dnode close xnoded

* test(xnode): add unit test cases for xnode

* rebalance support where clause

* fix some test issue

* unformat http post content json string

* add xnode zh doc

* modify drain description

* remove job create/stop/drop operation

* support rebalance all without where condition

* support alter task by name

* add NULL param for mndCheckOperPrivilege

* add xnode txnode module for libmnode.a

* code clean

* change parser len to 4096

* clean code

* chore: try to fix gtest/gtest.h not found

* chore: fix markdown files

* chore: fix markdown in zh

* chore: fix enum issue and add ci

* chore: fix test case problem

* chore: fix pKeyVal overflow

* chore: rename to 排空节点

* chore: external cmake remove parallel

* chore: add DEP_ext_gtest for xnode test

* chore: fix gtest errors

* chore: remove gtest pthread lib

* chore: fix data type not match

* chore: fix some lint errors

* chore: fix void unlink

* chore: fix return with null pointer check

* chore: fix pointer double free and xnodeMemoryTest strncpy null

* chore: fix xnode encode action invalid datelen

* chore: remove TD_LINUX condition

* chore: use PRIu64 denote long long

* chore: fix task parser NULL and allow no with clause

* fix(xnode): fix windows build error

* chore: fix windows curl error

* chore: fix test case ins_tables relative error

* chore: fix memory leak

* docs: update taosx docs

* chore: update taosx docs

* chore: add role priviledge table

* chore: fix error code doc

* chore: fix test_xnode.py

* chore: fix doc typo

* fix: ci error while run test_user_privilege_sysinfo.py

---------

Co-authored-by: Linhe Huo <linhehuo@gmail.com>
Co-authored-by: huohong <sallyhuo@taosdata.com>
Co-authored-by: Simon Guan <guanshengliang@qq.com>
2026-01-01 14:51:03 +08:00
Mario Peng
11fb428f9a
enh: drop multi-stream (#33962) 2025-12-30 18:52:02 +08:00
Bomin Zhang
aa21a2047a
feat: three minor enhancement (#34110) 2025-12-30 14:18:44 +08:00
Simon Guan
dc9886309d Merge branch '3.0' into merge/mainto3.0 2025-12-30 14:07:22 +08:00
Yihao Deng
7e8ef40e0a
enh: addTransportSafetyTest (#34081) 2025-12-30 14:06:30 +08:00
Kaili Xu
562ddff48a
fix(rbac): show users full and grant grammar (#34108) 2025-12-30 14:06:03 +08:00
Jinqing Kuang
e96f6b1e1b Merge branch 'main' into merge/mainto3.0 2025-12-30 10:19:08 +08:00
Jinqing Kuang
7793f72f64
feat(stream): support sub event in event window trigger (#34050) 2025-12-30 09:15:22 +08:00
Kaili Xu
31126ab2b6
feat(rbac): access control (#33822) 2025-12-29 19:27:11 +08:00
Zhixiao Bao
216c8d4afd
feat: support encryption of configuration files, data files and metadata files (#33801) 2025-12-26 17:58:46 +08:00
Bomin Zhang
9f0271d715
feat: support token authentication (#34026) 2025-12-25 16:30:10 +08:00
Pan Wei
66e189aa8c
feat: support uncorrelated scalar subquery (#33913) 2025-12-22 11:35:33 +08:00
dongming chen
55f5bc0dd2
feat[TS-7233]: audit (#33850) 2025-12-16 16:27:11 +08:00
Yihao Deng
f5298caa15
enh: support reload ssl (#33858) 2025-12-15 16:48:20 +08:00
WANG MINGMING
79a5c48ffa
feat(tmq): [TS-6379]remove limition for table operation in tmq (#33834) 2025-12-15 11:26:46 +08:00
Bomin Zhang
d4e29c97fc
feat[TS-7529]: support TOTP authentication (#33852) 2025-12-10 15:25:21 +08:00
Bomin Zhang
93fe726f9c
feat[TS-7231]: identity authentication (#33702) 2025-12-05 17:35:10 +08:00