Commit Graph

2197 Commits

Author SHA1 Message Date
54liuyao 48d5f0e7cd fix issue 2024-11-05 18:14:35 +08:00
Shengliang Guan cca24b7381
Merge pull request #28634 from taosdata/feat/contrib30
refact: rename version to td_version
2024-11-05 13:33:20 +08:00
Shengliang Guan 1539e04e8b
Merge pull request #28639 from taosdata/main
merge: from main to 3.0 branch
2024-11-05 09:04:38 +08:00
Shengliang Guan f8bd752e59
Merge pull request #28627 from taosdata/feat/contrib3
fix: compile errors on macOS 14.4 m2 chip
2024-11-04 16:40:49 +08:00
Shengliang Guan 03814cfe5a refact: rename version to td_version 2024-11-04 15:16:15 +08:00
Shengliang Guan 031146b3b5 fix: check memory calloc 2024-11-04 11:53:24 +08:00
Shengliang Guan 07f7b57cd7 Merge remote-tracking branch 'laiyongtao/fix-udfd-env-var-cfg' into feat/contrib30 2024-11-04 11:39:41 +08:00
Shengliang Guan d8858a5113 Merge remote-tracking branch 'suzp1984/fix/3.0-compile-error-macos' into feat/contrib3 2024-11-04 11:06:15 +08:00
Jing Sima 9df427c0cd fix:[TD-32506] Add test case for TD-32506 2024-11-04 09:40:35 +08:00
54liuyao de92e455a6 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-11-04 09:11:43 +08:00
Shengliang Guan 65f41cad20
Merge pull request #28577 from taosdata/enh/TD-32652-main
enh(query)[TD-32652]: enable AVX implementation with CPU dispatching
2024-11-01 17:30:52 +08:00
Jinqing Kuang 647066c4f9 enh(query)[TD-32652]: enable AVX implementation with CPU dispatching
Extract AVX implementation of specific functions into separate files.
The CPU dispatching mechanism will now check the machine's instruction
set at runtime to determine whether to use the AVX implementation or
fallback to the naive version.

This enhancement improves performance on most machines while ensuring
compatibility with older hardwares.
2024-11-01 12:44:59 +08:00
54liuyao 0e0a7ae2e9 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-11-01 09:54:51 +08:00
xsren 6d4d79a4d3 fix: geometry ST_AsText 2024-10-30 14:04:12 +08:00
dapan1121 9f2fba6269 Merge remote-tracking branch 'origin/main' into enh/TD-32190 2024-10-28 18:48:40 +08:00
xsren fb34549ae7 fix: json tag length check 2024-10-28 11:50:25 +08:00
xsren 323088dc71 fix: create partialfunction 2024-10-27 22:41:34 +08:00
xinsheng Ren 412c10ed94
Merge branch '3.0' into enh/TD-32181/client 2024-10-25 22:54:04 +08:00
54liuyao f79dcffc8c Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-25 14:14:43 +08:00
54liuyao cea454b002 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-24 19:24:55 +08:00
Jing Sima 5f7dbde47f enh:[TD-32459] Abstract function properties into a struct. 2024-10-24 16:39:12 +08:00
Jing Sima c26ab17f19 enh:[TD-32459] Abstract function properties into a struct. 2024-10-24 15:08:56 +08:00
Shengliang Guan 81c30ab7c0 fix: format cmake file 2024-10-24 10:10:07 +08:00
dapan1121 54bcd56da8 Merge remote-tracking branch 'origin/main' into enh/TD-32190 2024-10-23 19:14:13 +08:00
xsren 7094a8ddcf fix: bytes of repeat and timezone 2024-10-23 13:51:46 +08:00
54liuyao 3365da365f Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-22 10:17:49 +08:00
Shengliang Guan 25d43c139c
Merge pull request #28363 from taosdata/feature/TS-5530
feat: data analysis
2024-10-21 19:51:24 +08:00
xsren 7a42756511 replace snprintf with tsnprintf 2024-10-20 22:36:52 +08:00
54liuyao 6a2a5b80a1 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-18 09:28:18 +08:00
Jing Sima 15c13cc853 fix:[TD-32592] fix bug when percentile split bucket. 2024-10-17 15:02:17 +08:00
Jing Sima d0618b6e85 fix:[TD-32592] fix bug when percentile split bucket. 2024-10-17 15:01:23 +08:00
54liuyao a62b5a3efd fix issue 2024-10-17 14:55:07 +08:00
54liuyao 3e49f40c74 stream twa 2024-10-16 12:16:59 +08:00
54liuyao 944457d7a6 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-16 12:09:17 +08:00
dapan1121 a8965fa98c Merge remote-tracking branch 'origin/3.0' into enh/TD-32190 2024-10-15 19:20:36 +08:00
Shengliang Guan 3003e7286e feat: data analysis 2024-10-15 10:00:38 +08:00
Shengliang Guan b315b446e8
Merge pull request #28360 from taosdata/feat/anal7
revert: data analysis
2024-10-15 09:05:28 +08:00
Pan Wei 0db5fe41e4
Merge pull request #28249 from taosdata/enh/TS-4661-3.0
enh(query)[TS-4661] Add AVX2 support for decompression and MIN/MAX comparison
2024-10-15 08:47:39 +08:00
Shengliang Guan 9f05ca5ee8 revert: data analysis 2024-10-14 23:27:11 +08:00
Jinqing Kuang 636c65d62f enh(query)[TS-4661]. Add AVX2 support for decompression and MIN/MAX comparison
- Implement AVX2 instructions to decompress float and double data types
- Add AVX2-based MIN/MAX comparison for both integer and floating-point data types
- Include unit tests to verify functionality and performance improvements
2024-10-14 15:31:40 +08:00
54liuyao 9377450199 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-14 13:55:05 +08:00
Pan Wei 80e2e426f0
Merge pull request #28277 from taosdata/enh/TD-32413/snprintf
Enh/td 32413/snprintf
2024-10-14 10:59:03 +08:00
Jing Sima 6231d46cc5 enh:[TD-32189] Add validation to prevent changes to resultinfo structure. 2024-10-12 15:14:59 +08:00
xinsheng Ren 9f645a0879
Merge branch '3.0' into enh/TD-32413/snprintf 2024-10-11 16:07:25 +08:00
Pan Wei fc05f92fc9
Merge pull request #28250 from taosdata/fix/TD-32409
fix: use safe function
2024-10-11 10:25:09 +08:00
Shengliang Guan 10d7adca54
Merge pull request #28290 from taosdata/feat/anode314
fix: unitest error
2024-10-10 20:57:31 +08:00
Pan Wei 67bf944413
Merge pull request #28292 from taosdata/fix/buildRelease
fix: ret error
2024-10-10 18:18:25 +08:00
Shengliang Guan 463c7f45dd fix: unittest error 2024-10-10 16:00:06 +08:00
54liuyao 5c121fd90d Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-10 15:58:07 +08:00
xsren ef8367fbb4 fix: ret error 2024-10-10 14:40:59 +08:00
Shengliang Guan 3e2de990d9 fix: unitest error 2024-10-10 14:26:53 +08:00
Shengliang Guan 16ed3be979 fix: unitest error 2024-10-10 14:05:45 +08:00
Shengliang Guan 1ad7745fe8 fix: unitest error 2024-10-10 13:34:32 +08:00
Shengliang Guan ad61980e40 fix: unitest error 2024-10-10 13:17:24 +08:00
Shengliang Guan 43fa9b4cc7 fix: unitest error 2024-10-10 13:04:17 +08:00
Shengliang Guan 3ad2eb939c fix: unitest error 2024-10-10 11:54:32 +08:00
Shengliang Guan e792c1a986 fix: unitest error 2024-10-10 11:49:26 +08:00
xinsheng Ren dff505b87d
Merge branch '3.0' into enh/TD-32413/snprintf 2024-10-10 10:37:31 +08:00
xsren e03ccdc6e2 replace snprintf 2024-10-10 10:35:48 +08:00
xsren c7f6349e14 tsnprintf 2024-10-10 10:35:29 +08:00
dapan1121 d55a0032b1 fix: localtime issue 2024-10-10 09:45:37 +08:00
Pan Wei 822638144a
Merge pull request #28211 from taosdata/enh/TD-32414
enh:[TD-32414] replace unsafe functions
2024-10-10 08:55:51 +08:00
54liuyao dd7f705dcc Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-09 19:31:44 +08:00
Shengliang Guan ef39c9c41e
Merge pull request #28265 from taosdata/feat/anode1
feat: anode
2024-10-09 18:48:55 +08:00
Pan Wei 2ab40b9abe
Merge pull request #28261 from taosdata/enh/TD-31691
enh:modify error code passing
2024-10-09 18:31:20 +08:00
Shengliang Guan 4dc0c2f47e feat: data analysis 2024-10-09 17:09:43 +08:00
Jing Sima 3924b1fbc6 enh:[TD-32414] replace unsafe function in scalar and function. 2024-10-09 17:02:01 +08:00
Pan Wei 0fe3565c90
Merge pull request #28235 from taosdata/enh/TD-32413/safeFunc
enh: safe function
2024-10-09 16:40:12 +08:00
lyh250-666 676f8759e2 enh:modify error code passing 2024-10-09 15:37:00 +08:00
xsren eaf8bf0ca6 tstrncpy 2024-10-09 11:26:35 +08:00
54liuyao 08283a34c2 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-10-09 11:19:29 +08:00
Pan Wei 6c68777fee
Merge pull request #28238 from taosdata/fix/3.0/TD-32452
fix:[TD-32452] Clean up when error occurs to avoid mem leak.
2024-10-09 09:49:40 +08:00
xsren e88a8317af fix: buff size 2024-10-09 09:45:56 +08:00
Jing Sima f5872e6cec fix:[TD-32454] Use SMA when using min/max on numeric column. 2024-10-08 17:02:25 +08:00
Jing Sima 83f0601ea9 fix:[TD-32452] Clean up when error occurs to avoid mem leak. 2024-10-08 14:57:04 +08:00
xsren 7f2a2cfbd0 enh: safe function 2024-10-08 14:25:51 +08:00
dapan1121 c18da7f273 Merge remote-tracking branch 'origin/3.0' into enh/TD-32190 2024-09-30 09:55:09 +08:00
dapan1121 65985c7aaa enh: add tag scan test 2024-09-27 18:08:36 +08:00
54liuyao df8cfa65c2 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-27 11:37:37 +08:00
xsren 18bc5a048f taosStrndup 2024-09-26 14:46:53 +08:00
54liuyao d44529e62f Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-25 15:12:15 +08:00
Jing Sima ad7b2ddc1b enh:[TD-32158] Free memory only when function need cleanup. 2024-09-24 11:35:36 +08:00
Jing Sima 122b707ac8 enh:[TD-32158] Free memory allocated in function setup. 2024-09-24 11:35:36 +08:00
Pan Wei 04663cb4b3
Merge pull request #28011 from taosdata/enh/TD-31691
Enh/td 31691
2024-09-23 08:54:34 +08:00
lyh250-666 69d62454d7 enh:modify error code passing 2024-09-20 17:48:04 +08:00
54liuyao e53fafc08f Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-20 15:31:03 +08:00
Hongze Cheng 80152c1e48
Merge pull request #27948 from taosdata/enh/TD-32144-3.0
enh: check memory allocation
2024-09-20 09:04:34 +08:00
Pan Wei db77a7dc66
Merge pull request #27954 from taosdata/fix/deakLock
fix: deak lock
2024-09-19 16:29:59 +08:00
54liuyao 813cab6e33 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-19 14:45:38 +08:00
xsren bffba8e440 fix: deak lock 2024-09-19 10:22:25 +08:00
Jing Sima de16ac5faa enh:[TD-32128] Haneld return value of memory alloc functions. 2024-09-19 08:15:19 +08:00
kailixu 1b53ba2df4 enh: check memory allocation 2024-09-18 23:17:08 +08:00
54liuyao c4566f98b8 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-18 16:26:37 +08:00
Pan Wei 4c459155f1
Merge pull request #27890 from taosdata/fix/TD-31870/os4
fix: os return
2024-09-18 11:03:44 +08:00
xsren f684e12c27 pointer check 2024-09-14 18:11:36 +08:00
xsren 1b48080a94 fix: os return 2024-09-14 11:47:20 +08:00
xsren a91085eef6 fix: void 2024-09-13 16:14:40 +08:00
54liuyao de44c5dc5e Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-13 11:13:04 +08:00
54liuyao aa80aa39bc fix(query):use window start key when ts column is null 2024-09-12 15:34:57 +08:00
Pan Wei c8b087fc2d
Merge pull request #27776 from taosdata/fix/3.0/TS-5839
fix:[TS-5839] Fix crash when use last function on a column with all null value with partition subclause.
2024-09-12 09:13:23 +08:00
54liuyao 7c32cc7796 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-12 09:08:40 +08:00
Pan Wei b795638456
Merge pull request #27760 from taosdata/fix/3.0/TD-31974
fix:[TD-31974] fix memory leak when error occurs after mode function init
2024-09-12 08:44:08 +08:00
Pan Wei 8b7b5b7c6d
Merge pull request #27752 from taosdata/fix/TD-31870/OSFileRetCode
osDir
2024-09-11 17:52:14 +08:00
Jing Sima d670778802 fix:[TD-31974] fix memory leak when error occurs after mode function init. 2024-09-11 14:47:14 +08:00
Jing Sima 64bb49e0db fix:[TS-5839] Fix crash when use last function on a column with all null value with partition subclause. 2024-09-11 13:49:06 +08:00
xsren aea768d2c0 osFile 2024-09-10 17:40:19 +08:00
54liuyao 77ffe89bf6 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-10 10:22:20 +08:00
Jing Sima 4a8bbc36bd feat:[TS-4893] refactor of rand function. 2024-09-09 18:48:24 +08:00
Jing Sima a249bef104 feat:[TS-4893] Add random and support use min/max on string column. 2024-09-09 18:48:24 +08:00
Pan Wei 1238960c75
Merge pull request #27750 from taosdata/fix/TD-31946.2
fix: percentile empty result issue
2024-09-09 15:46:27 +08:00
Hongze Cheng 8c64b1049c
Merge pull request #27749 from taosdata/enh/TD-31803-11
enh: error handle in message encode and decode
2024-09-09 14:47:14 +08:00
Pan Wei 07424b7a06
Merge pull request #27719 from taosdata/fix/TD-31790/errCheck
fix: distinguish the calling scenarios of the metaGetTbTSchema function
2024-09-09 14:10:20 +08:00
Hongze Cheng a260a5f2f7 enh: error handle in message encode and decode 2024-09-09 11:49:44 +08:00
dapan1121 8308a42c0c fix: percentile empty result issue 2024-09-09 11:31:32 +08:00
54liuyao 88d01d8980 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-09 11:21:23 +08:00
Haojun Liao 88b0d10dfe
Merge pull request #27696 from taosdata/fix/TD-31923/crash
Fix/td 31923/crash
2024-09-06 18:02:01 +08:00
Haojun Liao 9150c0b07e
Merge pull request #27673 from taosdata/enh/TD-31902
enh:[TD-31902] Remove void.
2024-09-06 15:46:29 +08:00
xsren 3fb89fb814 fix: distinguish the calling scenarios of the metaGetTbTSchema function 2024-09-06 14:16:58 +08:00
54liuyao 7501c5a865 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-06 13:26:23 +08:00
xsren aa526fe13a unused code 2024-09-06 11:54:22 +08:00
Pan Wei 8da5b891f5
Merge pull request #27691 from taosdata/fix/3.0/TD-31909
fix:[TD-31909] Avoid double free when error occurs in mode function.
2024-09-06 11:21:08 +08:00
Jing Sima dde0ad1e54 enh:[TD-31902] Remove void. 2024-09-06 10:38:10 +08:00
xsren 0a118243ea fix: free invalid hash 2024-09-06 09:38:23 +08:00
xsren 46355de7f9 fix: crash 2024-09-05 17:30:46 +08:00
Jing Sima ede112d39d fix:[TD-31909] Avoid double free when error occurs in mode function. 2024-09-05 17:25:31 +08:00
Jing Sima 87130db0e4 fix:[TD-31889] extend result buf size for percentile function to handle large double value. 2024-09-04 18:33:14 +08:00
54liuyao f5b6e800f3 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-04 10:56:36 +08:00
Jing Sima 02dd9c9160 fix:[TD-31818] fix memory leak allocated by mode function. 2024-09-03 17:34:23 +08:00
54liuyao aaad472f58 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-03 13:38:07 +08:00
lyh250-666 28d0dc8e5b modify error code pass in libs/catalog/, libs/function/ and libs/command/ 2024-09-02 22:59:49 +08:00
54liuyao f1cbd426d6 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-09-02 13:53:32 +08:00
Jing Sima 46b1d9eb07 fix:[TD-31818] fix memory leak allocated by mode function. 2024-08-31 19:48:11 +08:00
54liuyao 9d8e8892b4 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-08-30 16:04:09 +08:00
dapan1121 0953983d26 fix: validate to_iso8601 parameters 2024-08-30 09:16:41 +08:00
xsren 95f283485a fix: tudf lock 2024-08-29 10:09:42 +08:00
xsren 4b872f849c fmFuncDynDataRequired: only return state 2024-08-27 17:07:13 +08:00
xsren 3b1a1ed2cd udf function required data load 2024-08-27 13:25:33 +08:00
xsren 809932b283 fix: reqStatus 2024-08-27 12:52:50 +08:00
xsren c60ea644e3 fix: return 2024-08-27 11:49:28 +08:00
54liuyao 7efb648a5f Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-08-23 14:49:32 +08:00
xsren 3fb4dbbec4 fix: check the result of array init 2024-08-22 17:12:14 +08:00
54liuyao 3583237942 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-08-22 14:47:16 +08:00
xsren b06d16162d fix: tudf crash 2024-08-20 15:21:14 +08:00
sima 5fb431aff4 enh:[TD-31525] Remove ASSERT in libs/function. 2024-08-19 16:58:13 +08:00
sima 3c3507f283 fix:[TD-31503] Return null when expr in timediff is null, and use ms as default time_unit when time_unit is null. 2024-08-16 15:54:07 +08:00
sima f2dcd3f16a fix:[TD-31470] Fix replace function wrong length. 2024-08-15 15:29:27 +08:00
54liuyao 141de6e19b Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-30837 2024-08-14 19:21:59 +08:00
sima 1d77ea76e8 feat:[TS-4893] Backward Compatibility. 2024-08-14 09:19:25 +08:00
sima a54019211f feat:[TS-4893] Support MYSQL functions.
Add more functions:
 - Numeric Functions: PI(),ROUND(),TRUNC(),EXP(),LN(),SIGN(),DEGREES(),RADIANS().
 - String Functions: CHAR(),ASCII(),POSITION(),TRIM(),REPLACE(),REPEAT().
 - Date and Time Functions: WEEKDAY(),DAYOFWEEK(),WEEK(),WEEKOFYEAR().
 - Aggregate Functions: VAR_POP().
Modify some functions:
 - ROUND(): support round to given decimal places.
 - CHAR_LENGTH(): support calculate multi-byte character's length.
 - TIMEDIFF(): result will be negative when expr1 < expr2.
 - STDDEV(): add alias name STDDEV_POP().
 - SUBSTR(): add alias name SUBSTRING().
             support new syntax SUBSTRING/SUBSTR(expr FROM pos [FOR len]).
2024-08-14 09:19:25 +08:00
sima 80bb0d7cf8 fix:[TD-31405] Return correct error code in spread function. 2024-08-13 14:41:19 +08:00