Commit graph

6101 commits

Author SHA1 Message Date
Simon Guan
1a6becbd2b Merge branch '3.0' into merge/mainto3.0 2025-03-14 14:54:02 +08:00
Kaili Xu
13f9bddf3d
feat: support customized taos/taosd (#29736)
* feat: support TDAcoreOS

* chore: cmake options for TD_ACORE

* chore: disable lemon for TD_ACORE

* chore: add lzma2 and msvcregex

* chore: cmake for lzma2

* chore: adapt for TD_ACORE

* chore: adapt strcasecmp for TD_ACORE

* chore: adapt for geos/threadName

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE termio

* chore: refact transComm.h for TD_ACORE

* chore: refact transportInt.h for TD_ACORE

* chore: refact trans.c for TD_ACORE

* chore: refact trpc.h for TD_ACORE

* chore: refact transCli.c/transComm.c/transSvr.c for TD_ACORE

* chore: refact uv.h for TD_ACORE

* chore: refact geosWrapper.h for TD_ACORE

* chore: refact token/builtins/udf for TD_ACORE

* chore: refact rocks for TD_ACORE

* chore: refact tsdbCache.c for TD_ACORE, use LRU cache for last/last_row, not use rocksdb

* chore: refact FAIL to _ERR to solve conflicts for TD_ACORE

* chore: restore lemon.c/lempar.c

* chore: support build lemon for TD_ACORE

* chore: refact trpc and siginfo_t for TD_ACORE

* chore: refact timezone for TD_ACORE

* chore: refact lz4 for TD_ACORE

* chore: refact TD_ACORE to make compile pass

* chore: code optimization for TD_ASTRA

* feat: support run taos with taosd integrated

* feat: support invoke taos shell

* feat: support invoke taos shell

* feat: support invoke taos shell

* chore: code optimization

* chore: fix undefined reference problem os TD_ASTRA

* chore: resolve compile problem for TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix getpid

* chore: fix typo

* chore: set stack size and ajust min pack size for TD_ASTRA

* chore: fix pthread create parameters

* chore: chmod adapt for TD_ASTRA

* chore: fix trans compile problem

* chore: adapt chmod for TD_ASTRA

* chore: byte alignment for TD_ASTRA

* chore: more code for adaption of TD_ASTRA

* chore: more code for adaption of TD_ASTRA

* chore: more code for adaption of TD_ASTRA

* chore: byte alignment for TD_ASTRA

* chore: conditional compile option

* chore: adapt for TD_ASTRA

* chore: adjust taosPId and msvcregex for TD_ASTRA

* chore: log dir separator for wal build name

* chore: fix type of pointer parameter

* chore: fix compile problem of tsdbGetS3Size

* enh: get last ver from wal log for TD_ASTRA

* enh: refact wal meta ver

* enh: refact wal meta ver

* fix: typo of taosUcs4Compare

* enh: process return value of CI

* chore: more code for TD_ASTRA adaption

* chore: return value of taosCloseFile in walMeta.c

* chore: fix compile problem

* chore: fix compile problem of TD_ASTRA

* fix: update macro for tq and stream task

* chore: code optimization for TD_ASTRA

* chore: restore create log and init cfg interface

* chore: restore strncasecmp and strcasecmp

* fix: adjust the field position of SDataBlockInfo

* fix: pragma pack min size

* fix: pragma pack min size

* chore: more code for TD_ASTRA adaption

* fix: type of parameters

* chore: adapt strncasecmp and strcasecmp for TD_ASTRA

* chore: restore interface of init log

* enh: pack push optimization

* fix: taos init cfg

* add astra support

* fix: fetch the value of suid

* chore: switch of  build with udf

* add temp code

* chore: more code for TD_ASTRA adaption

* chore: add macro ERRNO to replace errno

* chore: bytes align for TD_ASTRA

* fix: remove obsolete codes

* enh: support USE_UDF macro

* fix compile error

* fix: resolve redefinition problem

* fix: compile problem of log.cpp

* fix: compile problem of osTimezone

* fix: resolve compile problem of udf

* fix: pragma definition on windows

* fix: ucs4 and stpncpy for TD_ASTRA

* fix: memory align problem for TD_ASTRA

* enh: solve memory leak for TD_ASTRA_RPC

* fix: compile problem of taosSetInt64Aligned

* fix: restore mndSubscribe.c

* fix: scalar for udf

* chore: code adaption for TD_ASTRA

* chore: code optimization for TD_ASTRA

* fix: typo of add definition

* fix: typo of macro in tudf.h

* chore: remove void to make CI pass

* enh: move macro from cmake.platform to cmake.options

* enh: byte align for hash node and error code

* chore: restore the size for lru cache

* enh: restore some code about pack push

* chore: restore the pack push in tmsg.h

* fix: add macro of pack pop for windows

---------

Co-authored-by: yihaoDeng <luomoxyz@126.com>
2025-03-14 13:32:13 +08:00
Simon Guan
724facd134 Merge branch 'main' into merge/mainto3.0 2025-03-14 11:49:02 +08:00
dapan1121
90fcd168c9 Merge remote-tracking branch 'origin/3.0' into feat/TS-5992 2025-03-13 15:32:26 +08:00
facetosea
8fbd28eb6e fix: state col precal 2025-03-12 14:33:18 +08:00
Simon Guan
a084f03340 Merge branch 'main' into merge/mainto3.0 2025-03-12 14:18:42 +08:00
dapan1121
d997c144a1 Merge remote-tracking branch 'origin/3.0' into feat/TS-5992 2025-03-12 14:16:22 +08:00
54liuyao
051c34e2f1 fix(stream): fix stream mem leak 2025-03-11 11:30:13 +08:00
dapan1121
a4ed19b36d enh: add left join cases 2025-03-11 11:29:49 +08:00
54liuyao
1ddc510976 fix(stream): fix stream mem leak 2025-03-10 16:28:28 +08:00
Simon Guan
1170955b95 Merge branch 'main' into merge/mainto3.0 2025-03-10 11:05:52 +08:00
Simon Guan
34120a38c5 Merge branch '3.0' into merge/mainto3.0 2025-03-05 18:12:55 +08:00
Simon Guan
292b0cb317 Merge branch 'main' into merge/mainto3.0 2025-03-05 18:10:31 +08:00
Haojun Liao
24882459e3 chore: merge main 2025-03-05 13:40:44 +08:00
Haojun Liao
2c92cca603 test(analytics): add test case and set the unit to be second. 2025-03-04 23:31:02 +08:00
Haojun Liao
450561226a fix(analytics): fix syntax error. 2025-03-04 14:02:21 +08:00
Haojun Liao
0e37b45e06 fix(analytics): fix syntax error. 2025-03-04 13:56:39 +08:00
Simon Guan
1a9f75e663 Merge branch '3.0' into fix/internal 2025-03-04 13:47:03 +08:00
Haojun Liao
9139f3cb47 fix(analytics): fix syntax error. 2025-03-04 13:44:56 +08:00
Haojun Liao
8c035a930a refactor(analytics): do some internal refactor. 2025-03-04 13:40:33 +08:00
Haojun Liao
f85347b311 fix(analysis): fix syntax error. 2025-03-03 23:44:21 +08:00
Haojun Liao
19f09d679d feat(stream): add timeout parameter. 2025-03-03 23:05:14 +08:00
Haojun Liao
96cd36900a fix(analysis): fix syntax error. 2025-03-03 18:28:17 +08:00
Haojun Liao
f563a35b3f fix(stream):check the maximum allowed forecast rows, add one test case, and do some internal refactor. 2025-03-03 17:27:05 +08:00
Haojun Liao
ac667164ed refactor: do some internal refactor. 2025-03-03 16:20:58 +08:00
Simon Guan
6826edf5e0 Merge branch 'main' into merge/mainto3.0 2025-03-03 14:01:43 +08:00
Simon Guan
d7207861bb Merge remote-tracking branch 'origin/3.0' into fix/internal 2025-03-03 10:43:07 +08:00
Simon Guan
43ca6d5f9e refactor: adjust some logs 2025-02-28 16:49:46 +08:00
Simon Guan
1ae2bb28e8
Merge pull request #29954 from taosdata/enh/killtrans
enh(stream): not waiting during drop stream tasks.
2025-02-28 10:40:53 +08:00
Simon Guan
63992a3240 Merge remote-tracking branch 'origin/main' into merge/mainto3.0 2025-02-28 09:16:43 +08:00
Simon Guan
f5429637fa Merge branch 'main' into merge/mainto3.0 2025-02-28 09:11:10 +08:00
54liuyao
9d3a00920e fix(stream): fix mem leak && rebuild event window when the window end flag is modified 2025-02-27 11:23:40 +08:00
Simon Guan
76ad364b93 enh: adjust some logs 2025-02-27 09:55:11 +08:00
Haojun Liao
11e7126f98 Merge branch 'main' into enh/killtrans 2025-02-27 00:35:28 +08:00
Haojun Liao
786ee101cd other: merge main. 2025-02-27 00:18:25 +08:00
Haojun Liao
bf1f162aa0 fix(stream): drop task in synch model in write thread. 2025-02-27 00:15:36 +08:00
Haojun Liao
012ee53d35 fix(stream): drop task in synch model in write thread. 2025-02-27 00:15:31 +08:00
Haojun Liao
45b0e47a19 refactor(stream): add long exec stream queue for history tasks in step1 and re-calculate task execution. 2025-02-27 00:15:03 +08:00
Haojun Liao
c14ba08d7c refactor(stream): drop task in async ways 2025-02-27 00:12:11 +08:00
dapan1121
e41cd44c51 enh: add merge join primary expr type 2025-02-26 16:30:36 +08:00
Jinqing Kuang
a987d925a1 fix(query)[TD-33833]: fix function projectApplyFunctions for null pointer handling 2025-02-25 15:48:25 +08:00
Shengliang Guan
5ad05a662a Merge branch '3.0' into feat/TS-5470-3.0 2025-02-24 16:12:47 +08:00
Shengliang Guan
8fccf318ab
Merge pull request #29902 from taosdata/merge/mainto3.0
merge: from main to 3.0 branch
2025-02-24 15:47:21 +08:00
Shengliang Guan
3a1d06f4d7
Merge pull request #29354 from taosdata/enh/TS-5255/colsFunc2
enh: ts5255/cols func2
2025-02-24 14:19:37 +08:00
Jinqing Kuang
51ffff2079 feat(query)[TS-5470]: add syntax to specify minimum duration for event and state windows
Introduce the `true for` syntax to allow users to specify the minimum
duration for event and state windows. Add corresponding tests to
validate the feature. Updated the user manual with usage instructions.
2025-02-24 08:02:48 +08:00
Shengliang Guan
3a739beaa5 Merge branch 'main' into merge/mainto3.0 2025-02-22 20:07:40 +08:00
Haojun Liao
8c1ddb547f fix(query): check return value. 2025-02-21 02:24:00 +08:00
Haojun Liao
ecc667c22b
Revert "refactor(stream): drop task in async ways" 2025-02-21 01:10:18 +08:00
Shengliang Guan
1e59168396 fix: ci errors 2025-02-20 19:20:40 +08:00
facetosea
d9bbe0d888 return code 2025-02-20 19:15:22 +08:00
Shengliang Guan
2bee60a41a Merge branch 'main' into merge/mainto3.0 2025-02-20 18:12:02 +08:00
facetosea
75984e6d1e fix: group const value 2025-02-20 16:29:23 +08:00
Shengliang Guan
42bafc0d47
Merge pull request #29848 from taosdata/fix/ly_stream
fix(tsma):drop invalid state for tsma
2025-02-20 15:04:03 +08:00
54liuyao
870fe1c071 fix(tsma):drop invalid state for tsma 2025-02-20 11:52:04 +08:00
facetosea
71bdb6fcae nullTuple pos 2025-02-20 11:47:03 +08:00
Shengliang Guan
60245b4e46
Merge pull request #29800 from taosdata/enh/TD-26215
enh: optimize group by tag performance
2025-02-19 16:37:41 +08:00
facetosea
01518aae39 fix: result error 2025-02-19 11:09:32 +08:00
dapan1121
df674440bf fix: last row scan and tag in conds issues 2025-02-18 19:27:47 +08:00
Shengliang Guan
6735e5e948
Merge pull request #29822 from taosdata/kjq/enh-code-clarity
enh(stream): add options to control message and frame size
2025-02-18 18:59:28 +08:00
Shengliang Guan
8bee0e7030
Merge pull request #29666 from taosdata/feat/TS-5776
fix:[TS-5776]add raw type from consumer
2025-02-18 17:53:52 +08:00
Jinqing Kuang
a48095d467 enh(streams): add options to control message and frame size
Add options to allow users to specify message and frame size limits for
event notifications.
2025-02-18 17:20:38 +08:00
facetosea
8a7b633036 fix: alias name length 2025-02-18 00:20:40 +08:00
wangmm0220
6f2ccfc3b2 Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/TS-5776 2025-02-17 17:41:25 +08:00
Haojun Liao
c4cd6dd62d fix(stream): drop task in synch model in write thread. 2025-02-17 10:06:09 +08:00
Jinqing Kuang
fc2d2672b9 feat(stream)[TS-5469]: add more stream event notifications
- Add event notifications for all window types
- Implement window invalidation notifications
- Add statistics for event notification delivery
2025-02-16 11:07:16 +08:00
facetosea
c4cc51b583 cols: use aggfunc 2025-02-16 01:15:12 +08:00
Haojun Liao
465e5eabd7 fix(stream): drop task in synch model in write thread. 2025-02-15 23:20:05 +08:00
Haojun Liao
25cdfa5ee9 refactor(stream): add long exec stream queue for history tasks in step1 and re-calculate task execution. 2025-02-14 18:34:20 +08:00
Haojun Liao
fd96b096ea refactor(stream): drop task in async ways 2025-02-13 23:41:06 +08:00
facetosea
3c0121ef1a unused code 2025-02-11 07:38:12 +00:00
wangmm0220
94b74cc20f Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/TS-5776 2025-02-07 18:25:08 +08:00
Shengliang Guan
a004d95996 Merge branch '3.0' into merge/mainto3.02 2025-02-06 13:46:36 +08:00
Haojun Liao
2f6977dfda Merge branch 'main' into enh/analysis 2025-01-23 18:55:32 +08:00
factosea
65e0990dc0 merge 3.0 2025-01-23 14:16:56 +08:00
Shengliang Guan
08e56fd27f
Merge pull request #29633 from taosdata/fix/TD-33551
enh: support ? in limit clause
2025-01-23 08:50:07 +08:00
wangmm0220
3fb2ec432e fix:[TS-5776]add raw type from consumer 2025-01-22 17:40:59 +08:00
Shengliang Guan
3bbecbbba4
Merge pull request #29626 from taosdata/fix/TS-5932
fix: invalid subtable in tbname list
2025-01-22 17:24:03 +08:00
wangmm0220
7c5c9f6245 fix:[TS-5776]add raw type from consumer 2025-01-22 16:38:37 +08:00
Haojun Liao
d6dc966ed1 fix(analysis): fix compiler error on windows. 2025-01-22 15:12:43 +08:00
Jing Sima
c2e15394d6 fix:[TS-5941] fix interpolate varchar/nchar data error 2025-01-22 13:40:26 +08:00
dapan1121
84c37d501a enh: support ? in limit clause 2025-01-22 11:45:12 +08:00
Haojun Liao
84580286ce enh(analysis): enable community edition to support anodes. 2025-01-22 11:11:06 +08:00
dapan1121
89cea7859a fix: invalid subtable in tbname in clause issue 2025-01-21 17:41:37 +08:00
Jinqing Kuang
eb5d463490 feat(stream)[TS-5469]. add support for window event notifications in stream processing
- Introduce new syntax to specify notification type and destination address
- Collect relevant event information during window computations
- Implement websocket-based notification delivery to the specified address
2025-01-21 17:39:46 +08:00
54liuyao
f3b38edb98 add stream event notify 2025-01-21 11:18:49 +08:00
Shengliang Guan
585e639328 Merge branch 'main' into merge/mainto3.0 2025-01-19 11:19:14 +08:00
Shengliang Guan
97a091a8bb
Merge pull request #29567 from taosdata/fix/TS-5906
fix:[TS-5906]clear meta cache for subscription if tag is changed
2025-01-15 10:39:19 +08:00
wangmm0220
cae21da2d4 fix:[TS-5906]clear meta cache for subscription if tag is changed 2025-01-14 15:35:43 +08:00
Shengliang Guan
7fcbf30595 Merge branch 'main' into merge/mainto3.0 2025-01-11 20:44:08 +08:00
Shengliang Guan
5087e42933
Merge pull request #29512 from taosdata/fix/TS-5863/join
fix: join cols not set
2025-01-11 19:26:20 +08:00
Shengliang Guan
c62e189496 Merge branch 'main' into merge/mainto3.0 2025-01-09 13:38:37 +08:00
factosea
9277b0285f fix: error code 2025-01-08 15:24:04 +08:00
factosea
e71ea69cdb fix: seqStableJoinComposeRes 2025-01-08 15:22:19 +08:00
factosea
c85a57c055 fix: join cols not set 2025-01-08 11:24:24 +08:00
Jing Sima
794ab3ae16 fix:[TD-33473] Fix cleanup percentile failed. 2025-01-07 14:59:51 +08:00
factosea
772c37b4d6 fix: empty block 2025-01-01 19:17:12 +08:00
Shengliang Guan
0312435deb
Merge pull request #29390 from taosdata/enh/TS-4994-more-test-case
Enh/ts 4994 more test case
2024-12-29 22:14:40 +08:00
Shengliang Guan
9a1b80847a
Revert "Revert "Revert "Revert "Enh:[td 29974]improve trans"""" 2024-12-29 19:40:32 +08:00
Shengliang Guan
63e3e33f14
Revert "Revert "Revert "Enh:[td 29974]improve trans""" 2024-12-29 19:37:58 +08:00
Shengliang Guan
3ae93c9c90
Merge pull request #29389 from taosdata/merge/mainto3.0
merge: from main to 3.0 branch
2024-12-29 19:29:36 +08:00