Commit Graph

707 Commits

Author SHA1 Message Date
Haojun Liao 1e69538c37 fix(query): opt filter perf. 2022-12-27 16:55:38 +08:00
dapan1121 05580340d8 fix: invalid node list node issue 2022-12-20 18:25:33 +08:00
dapan1121 b9e3f01c7c fix: empty node in operator node 2022-12-20 18:15:25 +08:00
dapan1121 978d45ffc1 enh: optimize converting timestamp at client side 2022-12-15 16:56:35 +08:00
Shengliang Guan 6d94afe48f
Revert "refact: adjust some assert cases" 2022-12-07 21:51:17 +08:00
Shengliang Guan d5126d469a refact: replcase ASSERT with tAssert 2022-12-07 18:42:48 +08:00
Shengliang Guan f69a188f7e refact: replcase ASSERT with tAssert 2022-12-07 18:37:40 +08:00
dapan1121 0ecb0d26f2
Merge pull request #18694 from taosdata/fix/TS-2144
enh(query): add timetruncate function ignore timezone option for 1d
2022-12-05 17:18:18 +08:00
Ganlin Zhao e18da31a5d enh(query): add timetruncate function ignore timezone option for 1d 2022-12-05 12:00:12 +08:00
Shengliang Guan 241638de33
Merge pull request #18661 from taosdata/fix/liao_cov
enh(query): improve the performance and add some todo
2022-12-03 21:41:38 +08:00
Haojun Liao 658cb393a7 enh(query): improve the performance and add some todo 2022-12-03 12:11:20 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
Shengliang Guan 6d70f48802
Merge pull request #18592 from taosdata/feature/3_liaohj
enh(query): optimize query perf.
2022-12-02 21:00:35 +08:00
dapan1121 7bb30150a9 fix: fix memory leak 2022-12-02 14:23:36 +08:00
dapan1121 1fcd99176b fix: filter memory leak cause of same const strings 2022-12-02 10:59:52 +08:00
Haojun Liao f8a2ab8338 refactor: do some internal refactor. 2022-12-01 17:24:26 +08:00
Haojun Liao dac930352b enh(query): optimize the perf in compare. 2022-11-29 12:22:04 +08:00
Haojun Liao 5a3e4dc1c8 fix(query): set correct null check function. 2022-11-28 19:48:04 +08:00
Haojun Liao b53957c7bb fix(query): set correct ptr. 2022-11-28 18:57:36 +08:00
Haojun Liao b2b26f0c3c refactor: add an revised function to do compare. 2022-11-28 18:52:14 +08:00
Haojun Liao 90c1e7347f refactor: do some internal refactor. 2022-11-28 18:42:39 +08:00
Haojun Liao 6e81e8cc73 refactor: do some internal refactor. 2022-11-28 12:32:40 +08:00
yihaoDeng 1fc8f273bf fix TD-20751 mem leak 2022-11-25 19:50:57 +08:00
yihaoDeng ef8c68a098 fix TD-20751 mem leak 2022-11-25 19:38:06 +08:00
yihaoDeng c757b26d15 fix mem leak 2022-11-25 15:45:21 +08:00
Ganlin Zhao dff0b3c4bb fix: [ASAN] heap buffer overflow in sclfunc.c 2022-11-23 22:43:11 +08:00
Ganlin Zhao 4f176e325d fix: [ASAN] devive by zero 2022-11-21 18:01:48 +08:00
slzhou 9994a9f2c5 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/fixbugs 2022-11-18 16:24:49 +08:00
slzhou c5cb72291f fix: fix windows compilation error 2022-11-18 16:24:28 +08:00
dapan1121 c2d4d0907d fix: fix asan issue 2022-11-18 11:41:59 +08:00
slzhou 40af2903c1 fix: scalar mnode for in set more than 10 and print only 1000 groups to log in filter mode 2022-11-17 16:06:12 +08:00
Ganlin Zhao cf601b206f fix(query): ASAN heap buffer overflow
TD-20454
2022-11-16 15:00:57 +08:00
Ganlin Zhao aae3475900 fix(query): ASAN heap buffer overflow
TD-20454
2022-11-16 14:36:51 +08:00
dapan1121 21e62f1279 Merge remote-tracking branch 'origin/3.0' into fix/TD-20412 2022-11-15 12:53:22 +08:00
dapan1121 d985cb714f fix: fix asan issues 2022-11-15 11:38:01 +08:00
Xiaoyu Wang cd3722837d Merge remote-tracking branch 'origin/3.0' into fix/3.0_bugfix_wxy 2022-11-15 09:44:13 +08:00
Xiaoyu Wang 14b4adc6ce fix: memory leak 2022-11-15 09:39:17 +08:00
dapan1121 d2468c5548 fix: fix asan issues 2022-11-14 14:22:13 +08:00
Ganlin Zhao e0f2a4b5fe Merge branch '3.0' into fix/TD-20277 2022-11-09 16:42:22 +08:00
Ganlin Zhao 652c6388f2 fix: fix valgrind invalid read error 2022-11-09 16:40:17 +08:00
dapan1121 884144ba23
Merge pull request #17960 from taosdata/fix/TD-20267
fix: filter merge issue
2022-11-08 17:52:31 +08:00
dapan1121 d09351da68 fix: filter merge issue 2022-11-08 14:22:00 +08:00
dapan1121 fc73d39add fix: fix compare invalid read issues 2022-11-08 13:27:17 +08:00
Haojun Liao 270404318c other: merge 3.0 2022-11-07 09:28:22 +08:00
Haojun Liao 8bf01cdecb fix(query): fix error in unit test. 2022-11-05 00:02:25 +08:00
Haojun Liao 8c4be7dc21 refactor: do some internal refactor. 2022-11-04 22:13:40 +08:00
Haojun Liao 03f4918b3b refactor: do some internal refactor. 2022-11-04 18:46:48 +08:00
Haojun Liao 9c33d10ad9 refactor: remove the unnecessary function. 2022-11-04 09:15:14 +08:00
Haojun Liao abfa8c1d87 fix(query): add api to memset buffer for filtering data. 2022-11-03 22:05:08 +08:00
dapan1121 973a942d0f enh: support get meta only from cache 2022-11-01 11:43:40 +08:00
wangmm0220 d212be8a37 fix:defects in coverity 2022-10-26 17:54:19 +08:00
slzhou bf0a93e8d0 fix: compute udf funcs with all const arguments on server side 2022-10-25 15:24:13 +08:00
Ganlin Zhao b53a51e5e7 fix coverity 2022-10-25 11:11:17 +08:00
Ganlin Zhao 3a4dc8f0da Merge branch '3.0' into fix/coverity_glzhao 2022-10-25 09:47:46 +08:00
Ganlin Zhao c04ade7867 fix: coverity issues
CID: 400109
2022-10-24 19:48:58 +08:00
Ganlin Zhao 23b7150dee fix: coverity issues
CID: 399845
2022-10-24 19:20:10 +08:00
Ganlin Zhao 68e274eba2 fix: coverity issues
CID: 399665
2022-10-24 16:22:35 +08:00
Ganlin Zhao 4780e88ce9 fix: coverity issues
CID: 400330
2022-10-24 15:52:52 +08:00
Ganlin Zhao 120a3ca4b9 fix: coverity issues
CID: 400059
2022-10-24 15:18:27 +08:00
Ganlin Zhao 5728685772 fix: coverity issues
CID: 399907
2022-10-24 14:54:10 +08:00
Ganlin Zhao c12f1b6e6a fix: coverity issues
CID: 399890
2022-10-24 14:51:51 +08:00
Ganlin Zhao 623581a51d fix: coverity issues
CID: 399721
2022-10-24 14:26:13 +08:00
Haojun Liao c41713cf21
Merge pull request #17495 from taosdata/fix/liao_cov
refactor: remove redundant codes and do some internal refactor.
2022-10-20 13:16:02 +08:00
Haojun Liao ae625d3199 refactor: remove redundant codes and do some internal refactor. 2022-10-19 22:33:15 +08:00
dapan1121 fe5b898ee5
Merge pull request #17430 from taosdata/fix/TD-19609
fix: fix case when crash issue
2022-10-18 17:37:37 +08:00
dapan1121 c51629e5d3
Merge pull request #17423 from taosdata/fix/TS-1901
fix: fix varchar and bigint compare issue
2022-10-18 13:16:27 +08:00
dapan1121 ab7a00abbe fix: fix case when crash issue 2022-10-18 11:54:30 +08:00
dapan1121 bdb81e2b89 fix: fix varchar and bigint compare issue 2022-10-18 10:44:24 +08:00
Ganlin Zhao 1a3b2fa4f2 fix: coverity issues
CID: 399527
2022-10-17 16:55:27 +08:00
Ganlin Zhao 51dd72ec82 fix: coverity issues
CID: 372918
2022-10-17 15:53:24 +08:00
Ganlin Zhao bcf2cfeed7 fix: coverity issues
CID: 354713
2022-10-17 11:06:02 +08:00
dapan1121 52e0681769 fix: fix merge issue 2022-10-14 09:16:02 +08:00
dapan1121 f3919c4450 Merge remote-tracking branch 'origin/3.0' into feat/caseWhen 2022-10-14 09:14:01 +08:00
Hongze Cheng d8e32fb439 more code format 2022-10-13 14:03:23 +08:00
dapan1121 a13f553868 Merge remote-tracking branch 'origin/3.0' into feat/caseWhen 2022-10-12 13:33:41 +08:00
dapan1121 c485718d32 feat: add more case when cases 2022-10-12 11:46:49 +08:00
Hongze Cheng 52bf961622 more code 2022-10-12 11:09:42 +08:00
Shengliang Guan 5a8172d6c2
Merge pull request #17298 from taosdata/fix/glzhao_coverity
fix: fix coverity issues
2022-10-11 18:51:52 +08:00
Ganlin Zhao e5c3ff7158 fix: coverity issues
CID: 399950
2022-10-11 17:08:30 +08:00
Ganlin Zhao 936c7b6276 fix: coverity issues
CID: 400042
2022-10-11 16:00:19 +08:00
Ganlin Zhao 37a9143fcb fix: coverity issues
CID: 400170
2022-10-11 14:33:10 +08:00
Haojun Liao 187735dede fix(query): fix the invalid write. 2022-10-11 10:49:19 +08:00
Haojun Liao 2dcb5a9c29 fix(query): fix an typo. 2022-10-10 22:00:36 +08:00
Haojun Liao 73b5a001d6 fix(query): fix invalid type convert in cast function. 2022-10-10 19:15:52 +08:00
dapan1121 55a26990da feat: support case when cases 2022-10-08 19:07:43 +08:00
dapan1121 50b396c818 fix: fix case when issues 2022-09-30 18:13:55 +08:00
dapan1121 8ab016fd9f Merge remote-tracking branch 'origin/3.0' into feat/caseWhen 2022-09-30 15:21:03 +08:00
dapan1121 b03b139b76 feat: support case when clause 2022-09-30 14:59:43 +08:00
dapan1121 2d3992b72b feat: support case when clause 2022-09-29 19:19:49 +08:00
dapan1121 0022a766b3 enh: support case when 2022-09-26 19:21:57 +08:00
Haojun Liao 4ebee6b232 refactor(query): do some internal refactor. 2022-09-26 11:22:26 +08:00
Haojun Liao 91c86188fc Merge remote-tracking branch 'origin/feature/3_liaohj' into feature/3_liaohj 2022-09-23 10:03:13 +08:00
Haojun Liao 6f33ae921e refactor(query): do some internal refactor. 2022-09-23 10:02:43 +08:00
Haojun Liao 7ee2449a73 Merge branch '3.0' into feature/3_liaohj 2022-09-22 14:03:17 +08:00
Haojun Liao 6c6e20ff14 fix(query): fix value number counting in relational processing. 2022-09-21 14:18:27 +08:00
Haojun Liao 721112140f fix(query): assign qualified value. 2022-09-21 13:51:36 +08:00
Haojun Liao 4ca49bf549 fix(query): assign the result number. 2022-09-21 11:47:15 +08:00
Haojun Liao 33c075542d refactor(query): do some internal refactor. 2022-09-21 10:26:55 +08:00
Xiaoyu Wang 8a010a58f3 enh: added memory allocators for parser and planner 2022-09-20 16:13:08 +08:00
Shengliang Guan 1c7eb9daac
Merge pull request #16482 from taosdata/fix/filterResErr
fix: fix filter group merge error
2022-08-30 09:08:05 +08:00
dapan1121 a861537bc0 fix: fix filter group merge error 2022-08-29 15:44:10 +08:00
dapan1121 44dcaf2517 fix: fix type convertion issue 2022-08-29 09:28:38 +08:00
dapan1121 d18e7cd739 enh: remove compare type convertion 2022-08-26 16:20:07 +08:00
dapan1121 de55d16b60 enh: downgrade value type to speed up filter 2022-08-26 10:59:48 +08:00
Xiaoyu Wang e5da9167ff fix: escape character problem in auto create table insert 2022-08-19 11:52:30 +08:00
wangmm0220 c8da11cce6 Merge branch '3.0' into feature/3.0_query_optimize 2022-08-17 19:12:27 +08:00
wangmm0220 e3c11172ec fix:error in get table list by tag filter 2022-08-17 19:01:22 +08:00
wangmm0220 171ce325c7 fix:error in get table list by tag filter 2022-08-17 11:47:59 +08:00
wangmm0220 2bf2d5e6e1 fix:error in get table list by tag filter 2022-08-17 11:39:55 +08:00
Ganlin Zhao 09ce3b9ffe fix(query): set proper ltrim/rtrim result schema bytes
TD-18431
2022-08-17 11:26:38 +08:00
Ganlin Zhao c4aa94b236 fix(query): fix nested query length(ltrim/rtrim) result incorrect
TD-18388
2022-08-15 14:07:17 +08:00
Haojun Liao 3a6285c478 fix(query): add check when invoking sma filter. 2022-08-11 17:40:55 +08:00
Haojun Liao 4d8842c21f other:merge 3.0 2022-08-08 16:37:37 +08:00
Haojun Liao 1063064a59 enh(query): support filter by SMA. 2022-08-05 17:40:40 +08:00
dapan1121 9c91c35649 fix: fix sma filter for scalar mode 2022-08-05 16:36:46 +08:00
Haojun Liao e31ee23fbb fix(query): fix memory leak. 2022-08-04 15:44:42 +08:00
Haojun Liao bbcba1855d Merge branch '3.0' into feature/3_liaohj 2022-08-01 20:09:42 +08:00
Haojun Liao 24218752ab refactor: optimize tablescan perf. 2022-08-01 16:41:14 +08:00
shenglian zhou 799f7d0f87 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/fix/join 2022-08-01 16:20:17 +08:00
shenglian zhou 905a07801e fix: fix errors of join test case 2022-08-01 16:19:50 +08:00
Haojun Liao a2a2dbd68a refactor: optimize the build block perf. 2022-08-01 13:11:32 +08:00
dapan1121 b0d0b0297f fix: fix in operator memory leak 2022-08-01 11:12:09 +08:00
Xiaoyu Wang b08a28d559 fix: some problems of planner 2022-07-30 13:14:44 +08:00
Ganlin Zhao 2416411eaf Revert "restore sclRewriteOperator logic"
This reverts commit 2ff07c8f1e.
2022-07-23 19:21:08 +08:00
Ganlin Zhao 2ff07c8f1e restore sclRewriteOperator logic 2022-07-23 18:15:39 +08:00
Ganlin Zhao c6d9642fed Merge branch '3.0' into fix/TD-17682 2022-07-23 17:22:52 +08:00
Ganlin Zhao 29fe1d24a4 fix(query): fix sclrewrite function&operator type/bytes
TD-17682
2022-07-23 17:20:08 +08:00
dapan1121 741f8f7e55 fix: remove filter ut 2022-07-23 14:55:12 +08:00
slzhou@taodata.com 189c818f54 fix: change the operator type when switch left and right operands 2022-07-23 09:02:28 +08:00
Haojun Liao e6febe45dd
Merge pull request #15180 from taosdata/feature/3_liaohj
fix(query): fix time window generating bug.
2022-07-20 19:15:28 +08:00
Haojun Liao fc7887e6b7 fix(query): update the sim. 2022-07-20 17:24:49 +08:00
Ganlin Zhao 4dbb2debc0 fix(query): fix memory leak in histogram param validation
TD-17598
2022-07-20 14:54:40 +08:00
Xiaoyu Wang 6d5d6746f2 feat: sql command 'show tags from table_name' 2022-07-19 18:51:06 +08:00
afwerar fa96e64ee0 os: win format negative timestamp error 2022-07-18 16:53:20 +08:00
Ganlin Zhao 5b12fcb3a1 feat(query): add selective function scalar version 2022-07-18 15:23:28 +08:00
Ganlin Zhao 75371098a6 refactor 2022-07-18 15:14:20 +08:00
Ganlin Zhao a4d86275d2 feat(query): add first/last/last_row scalar version 2022-07-18 15:06:21 +08:00
Ganlin Zhao a80027736d feat(query): add top/bottom function scalar version 2022-07-18 14:47:53 +08:00
Ganlin Zhao 7b5a96fa80 Merge branch '3.0' into feat/agg_client_api 2022-07-18 13:42:58 +08:00
Ganlin Zhao e37bdbd5c9 feat(query): add histogram function scalar version
TD-17344
2022-07-18 13:37:18 +08:00
Ganlin Zhao 1ea48b62c8
Merge pull request #15026 from taosdata/feat/agg_client_api
feat(query): add stateduration function scalar version
2022-07-18 10:48:25 +08:00
dapan1121 077fbd6787
Merge pull request #15010 from taosdata/fix/TD-17460
fix: fix taosd mem leak
2022-07-18 09:18:43 +08:00
dapan1121 3101633bbf fix: fix scalar crash issue 2022-07-18 08:47:05 +08:00
Ganlin Zhao 107cb15dbd feat(query): add stateduration function scalar version 2022-07-17 22:52:40 +08:00
dapan1121 9ec14ece62 fix: fix taosd mem leak 2022-07-16 18:58:29 +08:00
Ganlin Zhao 810be53374 fix(query): fix state operator check 2022-07-16 17:01:44 +08:00
Ganlin Zhao 3bcd669fcd feat(query): add statecount function scalar version 2022-07-16 16:46:03 +08:00
Ganlin Zhao 790cecf123 feat(query): add diff function scalar version 2022-07-16 15:04:45 +08:00
Ganlin Zhao 2d1428eadd feat(query): add csum function scalar version
TD-17344
2022-07-16 14:13:45 +08:00
Ganlin Zhao 6d63d1b5b8 fix count scalar function behavior 2022-07-16 14:07:32 +08:00