Commit Graph

98 Commits

Author SHA1 Message Date
Pan Wei 0cb0e109a7
enh: add more cases for constant join (#30225)
* fix: add more cases and fix issues

* enh: add more test cases

* enh: add more test cases

* fix: memory leak issue

* enh: add view cases and fix order by issue

* enh: add document description
2025-03-19 16:50:44 +08:00
wangjiaming f50fcb85b8
feat(decimal): support decimal data type (#30060)
* decimal: create table

* decimal: add test case decimal.py

* decimal: add decimal.c

* support input decimal

* decimal test

* refactor svalue

* fix test cases

* add decimal unit test

* add decimal test cmake

* support insert and query decimal type

* define wide integer, support decimal128

* support decimal128 divide

* set decimal type expr res types

* scalar decimal

* convert to decimal

* fix decimal64/128 from str and to str

* fix decimal from str and decimal to str

* decimal simple conversion

* unit test for decimal

* decimal conversion and unit tests

* decimal + - * /

* decimal scalar ops and comparision

* start to refactor GET_TYPED_DATA

* support decimal max func, cast func

* refactor GET_TYPED_DATA interface

* decimal scalar comparision

* start to implement sum for decimal

* support sum and avg for decimal type

* decimal tests

* add decimal test

* decimal add test cases

* decimal use int256/int128

* decimal testing

* fix decimal table meta and add tests for decimal col streams

* fix create stream and create tsma

* test insert decimal values

* decimal from str

* test decimal input

* test parse decimal from string

* add taos_fetch_field_e api

* decimal insert tests

* test decimal operators

* decimal operator test

* feat:support decimal in raw block

* decimal operator tests

* decimal test

* feat:support decimal in raw block

* feat:support decimal in raw block

* feat:add schemaExt to SMqDataRsp

* feat:remove add schemaExt to SMqDataRsp

* feat:remove add schemaExt to SMqDataRsp

* feat:remove add schemaExt to SMqDataRsp

* decimal test operators

* decimal operator test

* test decimal operators

* test decimal compare operators

* decimal unary operator test

* decimal col with decimal col oper test

* test decimal col filtering

* fix decimal float operator test

* decimal test where filtering

* fix decimal filtering

* fix decimal order by

* fix decimal op test

* test decimal agg funcs

* test decimal functions

* remove assert

* fix ci build for ret check

* fix decimal windows build

* fix ci ret check

* skip decimal ret check

* skip decimal ret check

* fix decimal tests

* fix decimal ci test

* decimal test

* fix(tmq): heap user after free

* fix(tmq): double free

* fix(tmq): double free

* fix decimal tests

* fix(decimal): decimal test ci build

* fix(decimal): windows build

* fix(decimal): decimal test build

* fix(decimal): fix decimal build and tests

* fix(decimal): fix decimal tests

* fix(decimal): fix taos_fetch_fields_e api

* fix(decimal): fix decimal taos_fetch_fields_e api

* fix(decimal): rebase 3.0

* fix(decimal): fix decimal functions

* fix(decimal): fix decimal test case memory leak

* fix(decimal): fix decimal tests

* fix(decimal): fix decimal test case

* fix(decimal): fix decimal tests

* feat(decimal): fix unit tests

* feat(decimal): fix deicmal unit test

---------

Co-authored-by: wangmm0220 <wangmm0220@gmail.com>
Co-authored-by: yihaoDeng <yhdeng@taosdata.com>
2025-03-14 18:08:07 +08:00
wangmm0220 24f8fa4e6b Merge branch 'main' of https://github.com/taosdata/TDengine into fix/TS-5761-main 2024-12-18 13:41:00 +08:00
wangmm0220 e4447e7bdc fix:[TS-5761] error for in operator 2024-12-16 19:22:25 +08:00
factosea b195b7fa12 fix: multi/div with timestamp type 2024-12-16 16:51:45 +08:00
factosea c94a3f85e4 fix: mathOperatorRestype 2024-12-16 10:48:57 +08:00
factosea eee8b99819 fix: set strict 2024-12-15 23:40:20 +08:00
factosea 13ccfdc314 fix: in contition 2024-12-12 08:31:47 +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
Jing Sima e6649b78da fix:[TD-31703] fix memory leak when error occurs in filterMergeGroupUnits. 2024-08-26 19:06:51 +08:00
sima 50672cd1a8 enh:[TD-31529] Remove ASSERT in libs/scalar. 2024-08-20 07:58:55 +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
dapan1121 e8a6e15c49
Update filterInt.h 2024-08-07 16:10:27 +08:00
sima a4c120ee28 fix:[TD-31276] check malloc result. 2024-08-07 13:29:20 +08:00
Hongze Cheng eaa3634764 enh: refactor error code 2024-07-25 08:51:19 +08:00
sima 71e57b1dfc enh:[TD-30998] Handling return value in filterTest.c 2024-07-19 11:28:21 +08:00
sima a1fb874c22 enh:[TD-30998] Handling return value in sclvector.c 2024-07-19 11:28:21 +08:00
sima 434fd97615 enh:[TD-30998] Handling return value in filter.c 2024-07-19 11:28:21 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
Shungang Li 308ba7a02e fix: type geometry predicates support
support "=, <>, is null, is not null, in, not in"
2023-06-29 09:44:51 +08:00
shenglian zhou 6456d5dccf enhance: code finish 2023-05-22 11:41:19 +08:00
Haojun Liao c801f3a7f6 Merge branch 'main' into feature/3_liaohj 2022-12-27 17:15:22 +08:00
Haojun Liao 1e69538c37 fix(query): opt filter perf. 2022-12-27 16:55:38 +08:00
dapan1121 978d45ffc1 enh: optimize converting timestamp at client side 2022-12-15 16:56:35 +08:00
dapan1121 1fcd99176b fix: filter memory leak cause of same const strings 2022-12-02 10:59:52 +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 c485718d32 feat: add more case when cases 2022-10-12 11:46:49 +08:00
dapan1121 50b396c818 fix: fix case when issues 2022-09-30 18:13:55 +08:00
Haojun Liao 6f33ae921e refactor(query): do some internal refactor. 2022-09-23 10:02:43 +08:00
Haojun Liao 33c075542d refactor(query): do some internal refactor. 2022-09-21 10:26:55 +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 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
dapan1121 8c83f07fe4 fix: fix natural timestamp issue 2022-07-13 16:43:50 +08:00
dapan1121 6cd21fe04b enh: enhance in operator 2022-07-10 16:52:11 +08:00
Haojun Liao 3e81daf578 fix(query): fix memory leak. 2022-07-08 17:28:37 +08:00
Haojun Liao 14ddf539e0 refactor(query): do some internal refactor. 2022-06-22 17:21:04 +08:00
dapan1121 1a078d5d56 fix in issue 2022-06-08 18:36:46 +08:00
wangmm0220 020372cc75 feat: add sort/group logic for json 2022-06-05 18:26:16 +08:00
dapan1121 5ce7dd2a4d qnode load 2022-05-28 22:13:26 +08:00
slzhou 4a316eae3f Revert "feat: enhance udf scalar function calls"
This reverts commit e8690dabef.
2022-05-14 17:03:05 +08:00
Shengliang Guan 7b15cdb287
Merge branch '3.0' into feature/qnode 2022-05-13 23:27:59 +08:00
slzhou e8690dabef feat: enhance udf scalar function calls 2022-05-13 22:14:53 +08:00
dapan1121 1b2ca4c1b4 stmt query 2022-05-13 19:08:16 +08:00
Haojun Liao 3678aa9094
Merge pull request #12391 from taosdata/feature/3.0_liaohj
fix(query): fix special pseudo column caused taosd crash.
2022-05-12 23:49:21 +08:00
dapan 7771023d7b string to timestamp 2022-05-12 18:02:57 +08:00
Haojun Liao a41f6a3479 fix(query): fix the bug that special pseudo column tbname, along with other normal columns in select clause, cause taosd crash. 2022-05-12 17:33:36 +08:00