Commit graph

109 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
Mario Peng
1977e9b0e7
feat(client): rate-limit and reuse RPC for connectionless instance APIs (#35175) 2026-04-28 22:35:16 +08:00
Kaili Xu
fde63d139e
feat(mac): sod mandatory and mac[manual-only] (#35121) 2026-04-22 20:26:42 +08:00
Daniel Clow
2af9ed839f
docs: remove slugs and update links to md (#35053) 2026-04-03 16:09:59 +08:00
Jinqing Kuang
27a537829b
feat(query): support external windows (#34933) 2026-03-29 09:38:08 +08:00
dapan1121
42f03e896a Merge remote-tracking branch 'origin/main' into merge/mainto3.0 2026-03-20 09:58:36 +08:00
Linhe Huo
c15f23ea9a
feat(xnode): add xnode user privilege check (#34839)
Close https://project.feishu.cn/taosdata_td/feature/detail/6622713900
2026-03-19 22:36:31 +08:00
Jinqing Kuang
163aa941de
feat(stream): add natural time units support for PERIOD trigger (#34766)
Implement week/month/year units for stream PERIOD trigger with natural
boundary alignment and offset support.

Key changes:
- Parser: Add validation for natural time units (w/n/y) and offset parameter
- Time utilities: Add getDuration() support for week/month/year units
- TriggerTask: Implement window calculation with natural boundary alignment
  - Week: align to Monday 00:00:00
  - Month: align to 1st of month 00:00:00
  - Year: align to Jan 1st 00:00:00
- Add offset support: PERIOD(1w, 1d) shifts window by 1 day
- Unit tests: Parser validation, time utilities, TriggerTask window calculation
- System tests: End-to-end tests for week/month/year units with offset
- Documentation: Update user manual with natural time unit examples

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 15:43:36 +08:00
dongming chen
80c8c432e4
feat/6641435300-save-audit-in-self (#34738) 2026-03-13 11:38:17 +08:00
Jing Sima
5c70911ffe
enh: [6548485194] Support push down ts condition in vtable query. (#34718) 2026-03-11 14:29:42 +08:00
WANG MINGMING
a44a2a12a1
enh(tmq): optimize logic of tmq of query (#34303) 2026-02-26 17:06:07 +08:00
wangmm0220
7ce68a3f23 fix(taosd): conflicts from main 2026-02-06 11:21:26 +08:00
Tony Zhang
2e4b4bc62e
feat: support surrounding time for fill (#34414) 2026-02-05 11:33:28 +08:00
guichuan zhang
b6cab34a18
fix(xnode): increase the length of parser column and config column (#34491)
* fix(xnode): increase the length of parser column and config column

Closes [6755743701](https://project.feishu.cn/taosdata_td/defect/detail/6755743701)

* chore: fix memory leak

* chore: increase parser/config column length to 48k

* chore: add new error code to docs
2026-02-03 22:31:07 +08:00
Jing Sima
9a960b24bc
enh: [6690002267] Optimize virtual table query with plenty of columns. (#34341) 2026-02-02 17:27:02 +08:00
Jinqing Kuang
6defccb35a
feat(stream): support true for row count limit (#34342) 2026-01-29 14:54:28 +08:00
Simon Guan
22b1dac1c3 fix: conflicts 2026-01-23 09:28:39 +08:00
Jing Sima
8f7d35802c
enh: [6718786025] Optimize error code and error msg. (#34362) 2026-01-22 08:28:17 +08:00
Bomin Zhang
516695669b
feat: implement token notification (#34273) 2026-01-15 17:22:22 +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
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
Bomin Zhang
aa21a2047a
feat: three minor enhancement (#34110) 2025-12-30 14:18:44 +08:00
Bomin Zhang
40f6345f4e
enh: sign connect request (#34067) 2025-12-29 22:08:38 +08:00
Bomin Zhang
9f0271d715
feat: support token authentication (#34026) 2025-12-25 16:30:10 +08:00
xinsheng Ren
3596a9cb1c
enh(TD-29642): prohibit sorting by aggregate functions in non-aggregate queries (#33931) 2025-12-23 13:43:46 +08:00
Simon Guan
9335360003 fix: confilcts 2025-12-19 19:54:21 +08:00
Simon Guan
1413b7b997 fix: confilcts 2025-12-19 19:51:38 +08:00
Jing Sima
9cdae7b025
fix: [6589381451] Add virtual table datatype check when query. (#33973) 2025-12-19 17:57: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
Jing Sima
982999def0
feat: [TS-6665] support 32767 cols for virtual table. (#33743) 2025-12-15 13:35:30 +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
dongming chen
643dfcb4fc
feat(TS-7270): encrypt algr (#33783) 2025-12-05 13:26:28 +08:00
Jing Sima
3cb2c4602b
enh: [TS-7132] Optimize state window on virtual table (#33638) 2025-12-01 10:04:07 +08:00
haoranchen
3b1fd3ec36
fix: correct formatting and punctuation in error code documentation (#33750) 2025-11-28 13:43:00 +08:00
haoranchen
9d241a08ab
fix(docs): correct formatting and wording in documentation (#33749) 2025-11-28 12:28:10 +08:00
Simon Guan
5cb3a201b2 fix: conflict while merge from main to 3.0 2025-11-28 09:47:05 +08:00
Xuefeng Tan
c0369c3271
docs: update taosAdapter diable query sql configuration (#33700)
* docs: update taosAdapter diable query sql configuration

* docs: enhance taosAdapter documentation for dynamic log level and SQL pattern configuration

* docs: update taosAdapter documentation for rejecting query SQL configuration
2025-11-26 17:43:36 +08:00
Tony Zhang
e2024229fd Merge branch 'main' into merge/mainto3.0 2025-11-20 17:11:07 +08:00
Tony Zhang
0044dfecc7
fix: stream compatibility between 3.3.7 and 3.3.8 (#33599) 2025-11-20 09:07:18 +08:00
Simon Guan
169d535242 Merge branch 'main' into merge/mainto3.0 2025-11-15 11:29:18 +08:00
Simon Guan
7a9a0e2881 merge: from 3.3.6 to main 2025-11-14 10:29:06 +08:00
Jing Sima
13523ce884
enh: [TD-38456] Forbid duplicate timestamp in count/state/event window. (#33442) 2025-11-14 09:37:42 +08:00
dongming chen
51017f2e54
enh/TD-38561-remove-error-log (#33547) 2025-11-13 11:53:23 +08:00
Xuefeng Tan
086fdd61f3
docs: add query request concurrency limit configuration details (#33316)
* docs: add query request concurrency limit configuration details

* docs: fix formatting in query request concurrency limit section

* docs: add example configuration and error codes for query request concurrency limits
2025-10-22 22:14:45 +08:00
She Yanjie
f8e55eda37
docs: update conntector and error code page, remove rest connect type (#33266)
* chore(jdbc): update jdbc version

* docs: add connection type descriptions in 05-connector

* docs: add WebSocket error codes for C# connector

* docs: add rust connector error codes

* docs: modify conector and error code page

---------

Co-authored-by: t_max <1172915550@qq.com>
Co-authored-by: qevolg <2227465945@qq.com>
2025-10-15 21:03:17 +08:00
Alex Duan
01668ff4ea
docs: add error codes Prefix Categories (#33250)
* docs: add error code prefix define introduct

* docs: modify english docs

* docs: remove show error code command

* docs: add TDengine TSDB Error Code chapter

* docs: remove tips area

* docs: rename title to TDengine TSDB Business Error

* docs: rename error code struct

* Update docs/en/14-reference/09-error-code.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update docs/zh/14-reference/09-error-code.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* docs: linux error codes url link to chrom

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-10-14 20:24:20 +08:00
Tony Zhang
e4777c94b8
feat: support extend option in state window (#33003) 2025-09-22 13:52:52 +08:00
Jing Sima
72d3189367
feat: [TD-37052] Handle origin table's vnode change in stream query. (#32931) 2025-09-10 16:12:11 +08:00