Commit graph

74 commits

Author SHA1 Message Date
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
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
Jing Sima
6231d46cc5 enh:[TD-32189] Add validation to prevent changes to resultinfo structure. 2024-10-12 15:14:59 +08:00
lyh250-666
69d62454d7 enh:modify error code passing 2024-09-20 17:48:04 +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
lyh250-666
28d0dc8e5b modify error code pass in libs/catalog/, libs/function/ and libs/command/ 2024-09-02 22:59:49 +08:00
sima
de0fa610f8 enh:[TD-31043] Handling return value of taoshash and taosarray 2024-07-23 15:37:17 +08:00
sima
06431b1249 enh:[TD-31043] Handling return value in tminmax.c 2024-07-23 15:37:17 +08:00
sima
8b50b282b4 enh:[TD-31043] Handling return value in tavgfunction.c 2024-07-23 15:37:17 +08:00
sima
6a9441528a enh:[TD-31043] Handling return value in builtinsimpl.c 2024-07-23 15:37:17 +08:00
Haojun Liao
df003cca3c
Merge pull request #26197 from taosdata/fix/3_liaohj
fix(util): uncomment the timestamp decode function with AVX2 instructions
2024-06-20 16:16:52 +08:00
Haojun Liao
f353636136 refactor: do some internal refactor. 2024-06-19 15:08:25 +08:00
Haojun Liao
04281bcd07 fix(util): uncomment the timestamp decode function with AVX2 instructions, and do some internal refactor. 2024-06-19 15:06:09 +08:00
factosea
19f6766c9a fix: blockAgg 2024-06-15 18:08:25 +08:00
wangjiaming0909
fa85d1caa7 support other tsma funcs 2024-04-16 14:23:25 +08:00
wangjiaming0909
cc9550f45e add tsma funcs 2024-04-16 14:20:59 +08:00
54liuyao
52d8811bdc code coverage 2024-01-12 13:49:32 +08:00
Haojun Liao
801b211cd8 refactor:do some internal refactor. 2023-11-11 15:39:45 +08:00
Haojun Liao
8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
Haojun Liao
c9ce01c878 Merge branch 'main' into feature/3_liaohj 2023-02-13 17:09:27 +08:00
Ganlin Zhao
3d3d15b765 fix(query): fix max/min result inconsistent using with first or last
plus interval time window query
2023-02-10 10:45:52 +08:00
Haojun Liao
61be1fdc58 fix(query):fix syntax error. 2023-02-07 11:37:56 +08:00
Haojun Liao
3822225231 other: merge main. 2023-02-06 16:24:15 +08:00
Haojun Liao
f803fa44b5 fix(query): set the correct number of rows when calculating using sma for min/max function. 2023-02-03 16:50:13 +08:00
Haojun Liao
94c416eb30 enh(query): opt agg. 2023-01-10 18:48:55 +08:00
Haojun Liao
0b4f1298d7 enh(query): opt agg. 2023-01-10 18:48:20 +08:00
Haojun Liao
f67808a227 refactor: do some internal refactor. 2023-01-10 16:43:15 +08:00
Haojun Liao
e7d0178634 enh(query): dynamic invoke the intrinsic instruction according to different length for different data type. 2023-01-10 15:48:01 +08:00
Haojun Liao
0966528a2b refactor: do some internal refactor. 2023-01-06 16:05:13 +08:00
Ganlin Zhao
183b000240 fix error 2023-01-05 10:18:18 +08:00
Ganlin Zhao
4a3c892472 Merge branch 'main' into enh/TD-21690 2023-01-04 18:29:03 +08:00
Ganlin Zhao
d5c92d3788 fix saveTuplePos 2023-01-04 16:59:55 +08:00
Ganlin Zhao
e3b776c7f3 Merge branch 'main' into enh/TD-21206 2023-01-04 09:18:38 +08:00
dapan1121
3e1e6be827
Merge pull request #19262 from taosdata/fix/TS-2350
fix(query): fix floating type handle sma error
2023-01-03 17:21:30 +08:00
Ganlin Zhao
635f4f9b45 remove assert in tavgfunction.c & tminmax.c 2022-12-30 13:54:08 +08:00
Ganlin Zhao
73a95d3cda fix some format 2022-12-30 09:32:18 +08:00
Ganlin Zhao
e105f9c0d2 store sma result as float in buf 2022-12-30 09:16:30 +08:00
Ganlin Zhao
d8b8ece9c1 fix(query): fix floating type handle sma error 2022-12-29 18:12:29 +08:00
Liu Jicong
7721353b6b enh: put func state into tdb 2022-12-29 12:39:07 +08:00
Alex Duan
0a5fd77b17 feat(query): avg function overflow mac build 2022-12-18 19:04:38 +08:00
Alex Duan
1a75e9bb58 feat(query): avg function overflow add big check 2022-12-18 15:15:13 +08:00
Alex Duan
1b8199d98d fix(query): avg function check overflow mac build 2022-12-17 20:38:03 +08:00
Alex Duan
ea5bf3d31e fix(query): fix(query): avg check overflow 2022-12-17 17:15:44 +08:00
Alex Duan
ba31ce8070 feat(query): avg function check range overflow 2022-12-17 10:46:13 +08:00
Alex Duan
0130950170 fix(query): avg sum operation check range merge two SAvgRes pointer 2022-12-15 15:32:53 +08:00
Alex Duan
1ac428ff61 fix(query): avg sum operation check range build error 2022-12-15 14:54:22 +08:00
Alex Duan
e9f7572a54 fix(query): avg sum operation check range 2022-12-15 14:52:53 +08:00
Alex Duan
500ee304a6 fix(query): avg sum over range replace with macro 2022-12-15 12:43:28 +08:00
Alex Duan
74cf776439 fix(query): avg function sum overflow 2022-12-14 21:34:50 +08:00
Alex Duan
a4e0bbd34f fix(query): fixed avg function sum over range 2022-12-14 20:30:18 +08:00