Commit graph

11584 commits

Author SHA1 Message Date
WANG Xu
c52c68aa4f
sync: apply remaining build system changes from monorepo (main)
The following commits could not be applied individually due to context
differences between the monorepo and the public repo's build files.
They have been applied as a cumulative diff to ensure the final state
matches the monorepo exactly:

- chore: sync CI files with 3.0 branch to eliminate merge conflicts (rd-public/tsdb!271)
- revert(refactor): dynamically link taosd taosudf taosmqtt against libtaosnative.so to reduce binary size (revert #183) (rd-public/tsdb!282)
- fix(docs): autofix formatting issues across all doc files (rd-public/tsdb!296)
- feat: support -DBUILD_SANITIZER=true on windows for debug build (rd-public/tsdb!291)
- feat(build): build cache, mirror, and sccache optimizations (rd-public/tsdb!326)
- docs: update image for three replica (rd-public/tsdb!324)
- enh: shared storage on windows (rd-public/tsdb!333)
- fix(cmake): convert ext_libs3 from git clone to URL tarball download (rd-public/tsdb!360)
- feat: dual-source deps and comprehensive docs/packaging (cherry-pick to main) (rd-public/tsdb!352)
- fix(cmake): guard DOWNLOAD_EXTRACT_TIMESTAMP for CMake < 3.24 and fix duplicate Cargo.lock entry (rd-public/tsdb!369)
- fix: test case execution failure in pytest.sh (rd-public/tsdb!338)
- enh: built-in compilation support for Python UDF plugins use abi3 (rd-public/tsdb!325)
2026-05-23 14:11:50 +08:00
mariopeng
225fb2a628
enh(stmt2): select support timestamp adaptive preicision (rd-public/tsdb!320) 2026-05-23 14:11:27 +08:00
mljin
1c02910dd3
fix(subq/stream): stream subquery per-event re-evaluation (#6984935627) (rd-public/tsdb!242) 2026-05-23 14:11:27 +08:00
wpan
ddc6982cb8
fix(mnode): resolve taosd deadlock when querying ins_stables with many supertables (rd-public/tsdb!309) 2026-05-23 14:11:26 +08:00
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
Peng Rongkun
c69724a279
fix: stmt retry when table recreate (#35303) 2026-05-13 09:11:04 +08:00
guichuan zhang
b5ecfbeb8a
feat: implement retrival of licenses from CLS server (#35246) 2026-05-10 21:52:03 +08:00
dongming chen
3d2865584a
fix: [6980850041] avoid vote at learner state (#35258) 2026-05-07 15:16:55 +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
Mario Peng
18fb7d5297
feat(client): expose DB timestamp precision in taos_stmt2_get_fields … (#35167) 2026-04-28 22:34:06 +08:00
Kaili Xu
908abd44c8
fix(rbac): access control[manual-only] (#35213) 2026-04-27 14:57:54 +08:00
Kaili Xu
fde63d139e
feat(mac): sod mandatory and mac[manual-only] (#35121) 2026-04-22 20:26:42 +08:00
Pan Wei
4bd8dfe637
fix: remove queryBufferSize and cacheLazyLoadThreshold in code and docs (#35176)
* docs: remove queryBufferSize configuration description

* refactor: remove deprecated queryBufferSize and cacheLazyLoadThreshold configs

Both configs were dead code with no actual effect:
- queryBufferSize/tsQueryBufferSize/tsQueryBufferSizeBytes: explicitly
  documented as 'not effective yet'; checkForQueryBuf/releaseQueryBuf
  were defined but never called anywhere
- tsCacheLazyLoadThreshold/cacheLazyLoadThreshold: registered and read
  from config but never referenced in any business logic

Remove variable declarations, definitions, config registrations, config
loading, associated functions, cfg file examples, docs, and test entries.
2026-04-20 17:42:14 +08:00
xinsheng Ren
71d1ad3f11
fix: taos_cleanup (#35079) 2026-04-17 13:38:41 +08:00
Zhixiao Bao
5e1a27e400
fix(auth): allow login for users created with storage encryption enabled. (#35156) 2026-04-17 13:34:32 +08:00
Tony Zhang
a86f629452
refactor(timezone): checkTime in dnode and mnode implementations and timetruncate logic for interval (main branch) (#35057) 2026-04-15 18:37:43 +08:00
dongming chen
9d9b96ff03
fix: [6955525222] check applied before quit assinged (#35117) 2026-04-14 10:14:27 +08:00
Mario Peng
aa7cc4ace6
fix(stmt2): correct DECIMAL in KV+blob row build and align bind path with parsed columns (#35010)
* fix: decimal string conversion missing in tRowBuildFromBind2WithBlob

Root cause: tRowBuildFromBind2WithBlob lacked the DECIMAL/DECIMAL64
string-to-binary conversion that exists in tRowBuildFromBind2. When a
table contains both DECIMAL and BLOB columns, the blob code path is
taken (tRowBuildFromBind2WithBlob), which treated DECIMAL as a raw
fixed-size binary type and read 16 bytes directly from the user buffer.
Since the user provides decimal values as text strings (e.g. "21.4300"),
the 15-byte buffer was too small, causing a stack-buffer-overflow.

Fix: Add pSchemaExt parameter to tRowBuildFromBind2WithBlob and add
DECIMAL/DECIMAL64 string-to-binary conversion (decimal128FromStr /
decimal64FromStr) in the fixed-size else branch, mirroring the logic
in tRowBuildFromBind2. Update the call site in parInsertStmt.c to pass
pSchemaExt.

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

* fix(stmt2): correct DECIMAL in KV+blob row build and align bind path with parsed columns

- tRowBuildKVRowWithBlob / tRowBuildKVRowWithBlob2: copy fixed columns via
  VALUE_GET_DATUM() so DECIMAL uses pData instead of the trivial val field.
- tRowBuildFromBind2WithBlob: mirror tRowBuildFromBind2 — accept parsedCols,
  correct bufArray indexing with numOfFixedValue, TAOS_CHECK_GOTO/lino, and
  free decimal128 heap after each successful row (and on error) to plug leaks.
- parInsertStmt: pass parsedCols into tRowBuildFromBind2WithBlob.
- Add stmt2Case.stmt2_decimal_blob_interleaved in stmt2Test

* fix review

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-07 19:20:47 +08:00
Jing Sima
e95e6a47f7
fix: [6930747799] Virtual table support decimal. (#35026) 2026-04-03 15:56:30 +08:00
WANG MINGMING
d94193be6b
fix(ci): set suid to reader (#34969) 2026-03-31 14:07:49 +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
Simon Guan
1ee7d6d058
feat: enable flexible deployment mode (#34911) (#34960) 2026-03-27 13:33:28 +08:00
Bomin Zhang
a12c0a433b
fix: failed test cases on windows (#34883) 2026-03-26 10:05:06 +08:00
Yihao Deng
2b980e0023
enh: add func readme (#34921) 2026-03-25 09:23:13 +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
WANG MINGMING
9337513a03
feat(stream): support getting meta changes for vtable in stream reader (#34895) 2026-03-23 15:48:28 +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
WANG MINGMING
7394319536
fix(taosd): add logic in altering table for tmq/stream (#34809) 2026-03-21 11:38:22 +08:00
Yihao Deng
a4a175df2f
feat: add query phase tracking for SHOW QUERIES (#34706) 2026-03-20 14:10:18 +08:00
Zhixiao Bao
d0c6d74502
feat: last cache shard-bits (#34857) 2026-03-20 13:56:20 +08:00
Simon Guan
8b70d7f42b Merge branch '3.0' into merge/mainto3.0 2026-03-20 10:11:46 +08:00
Tony Zhang
44433187db
enh: explain (#34764) 2026-03-20 10:08:49 +08:00
dapan1121
42f03e896a Merge remote-tracking branch 'origin/main' into merge/mainto3.0 2026-03-20 09:58:36 +08:00
Pan Wei
be954612a7
fix: windows timezone usage issue (#34856) 2026-03-20 09:05:07 +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
Mario Peng
4048092bf3
feat: SQL firewall black/white list (#34798) 2026-03-19 10:16:53 +08:00
Bomin Zhang
1138439542
feat: batch tag value update (#34564) 2026-03-18 14:19:15 +08:00
Simon Guan
473011663f fix: conflicts 2026-03-17 14:26:38 +08:00
Pan Wei
c368d8e611
fix: windows case issues (#34758) 2026-03-17 13:56:08 +08:00
Yihao Deng
9d746e0730
fix compile error (#34803) 2026-03-17 13:49:08 +08:00
Yihao Deng
4c94cbe5da
enh: add safefunc (#34436) 2026-03-16 20:27:15 +08:00
Zhixiao Bao
e29fadda2e
feat: support secure delete option. (#34591) 2026-03-16 20:26:22 +08:00
Simon Guan
350e43a19c fix: conflicts 2026-03-16 17:30:27 +08:00
Minglei Jin
49a1c6908a
calc subq to runner (#34457) 2026-03-16 14:10:31 +08:00
Hongze Cheng
3401aa8f98
feat: add data force repair mode (#34753) 2026-03-16 10:21:17 +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
Kaili Xu
f06a60959d
enh: introduce enableGrantLegacySyntax for grant/revoke syntax compatibility[manual only] (#34768) 2026-03-13 15:37:00 +08:00