Commit Graph

89 Commits

Author SHA1 Message Date
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
dapan1121 2738d5dd9c fix: code merge issue 2024-11-21 10:30:16 +08:00
Jinqing Kuang b4e0f9a922 enh(query)[TD-32127]: improve code quality of tsdbRead module
- Add parameter validation for functions to ensure robustness
- Nullify pointers when freeing memory to prevent dangling pointers
- Initialize local variables to avoid undefined behavior
- Add error handling and logging for better debugging
2024-11-11 11:53:28 +08:00
Pan Wei 706479bdb2
Merge pull request #27987 from taosdata/enh/TD-31691
enh:modify error code passing
2024-09-20 11:47:24 +08:00
lyh250-666 3367c787b0 enh:modify error code passing 2024-09-20 08:56:46 +08:00
Jinqing Kuang 4b46c4c1fc enh(query)[TD-32130]. Handle return values of memory allocation functions 2024-09-19 09:06:01 +08:00
Hongze Cheng 63b64a90c0 enh: remove void with error code handle 2024-09-10 13:12:05 +08:00
Haojun Liao 958b443fc2 refactor: check return value. 2024-09-08 23:49:04 +08:00
Haojun Liao 06f42443cb refactor: remove void. 2024-09-08 22:49:05 +08:00
Jinqing Kuang e182c10ce9 fix(query)[TD-31499]. Fix double free on certain field memory allocation failure 2024-08-29 14:22:58 +08:00
Pan Wei 8b0a040c64
Merge pull request #27500 from taosdata/enh/TD-31691
Modify error code passing for taosMemoryCalloc function in vnode
2024-08-28 11:24:26 +08:00
lyh250-666 06daf85130 Modify error code passing for taosMemoryCalloc function in vnode 2024-08-27 17:37:01 +08:00
Hongze Cheng 5b68cc1dd3 fix: error log 2024-08-26 19:20:30 +08:00
Hongze Cheng f4916211ca enh: clear more asserts 2024-08-26 16:56:48 +08:00
wangjiaming0909 043a8a8cfc use internal error 2024-08-22 19:15:57 +08:00
wangjiaming0909 e6a35dd34d remove asserts of nodes/planner/parser/tsdbread 2024-08-22 19:15:18 +08:00
Hongze Cheng 02c7474167 enh: remove some useless asserts 2024-08-22 09:47:44 +08:00
Haojun Liao 06af850e3c
Merge pull request #27251 from taosdata/fix/syntax
fix(tsdb): fix memory leak.
2024-08-15 19:09:18 +08:00
Haojun Liao b6629532bf fix(tsdb): fix memory leak. 2024-08-15 16:20:49 +08:00
Hongze Cheng 9792683b7d handle some of return -1 2024-08-14 17:50:20 +08:00
wangjiaming0909 882cfb7deb 1. lock not released when return
2. fix tsma err msg
3. fix fill prev wrong results
2024-08-12 08:53:27 +08:00
54liuyao fe75c72666 fix issue 2024-08-08 16:24:18 +08:00
Haojun Liao 34e9532976 fix(tsdb): return error. 2024-08-05 13:55:43 +08:00
Hongze Cheng 21754a009c enh: add more check return 2024-07-27 18:03:16 +08:00
Haojun Liao 7497f193c7 fix(stream): check return value, and do some internal refactor. 2024-07-23 14:47:29 +08:00
Haojun Liao 80a7b7da5f fix(tsdb): fix invalid return value. 2024-07-18 08:58:39 +08:00
Haojun Liao a8433ec6eb fix(tsdb):set the initialized value. 2024-07-18 00:31:28 +08:00
Haojun Liao 14f149cdd3 refactor: check return value for each function. 2024-07-17 11:47:05 +08:00
Haojun Liao 1ed620e702 fix(stream): return after get value. 2024-07-17 11:17:27 +08:00
Haojun Liao 749e7d6cf7 fix(stream): return after get value. 2024-07-17 00:49:53 +08:00
Haojun Liao 94f596c4ce refactor: remove the invalid return value. 2024-07-16 18:52:01 +08:00
Haojun Liao 19ba5af5e7 refactor: remove the invalid return value. 2024-07-16 15:59:16 +08:00
Haojun Liao d2cb53ab3d refactor: remove the invalid return value. 2024-07-16 15:49:08 +08:00
Haojun Liao 25f5c9dc5e other: merge 3.0 2024-07-15 19:41:54 +08:00
Haojun Liao 51e9723d66 refactor: do some refactor. 2024-07-15 19:37:52 +08:00
dapan1121 e527f2fd0b fix: validate function return value 2024-07-12 15:22:39 +08:00
Haojun Liao 5d2d5c3eee fix(tsdb): check for null ptr for block load info when retrieving block distribution. 2024-06-13 13:43:57 +08:00
Haojun Liao 43e018e210
Merge pull request #25733 from taosdata/fix/TD-29745
optimize scan data
2024-05-15 13:41:08 +08:00
54liuyao ab3ba3f2e4 optimize scan tsdb 2024-05-15 09:09:20 +08:00
Haojun Liao 9300b7a401 fix(tsdb): fix the length of column type overflow. 2024-05-14 16:22:11 +08:00
Haojun Liao c94c9a900c fix(tsdb): update the initial value of pk for varchar type. 2024-04-18 16:17:29 +08:00
Haojun Liao 51dfa20cf4 fix(tsdb): set correct initial value for compare. 2024-04-16 10:13:15 +08:00
Haojun Liao 46fd0cb0b5 fix(tsdb): set correct initial value 2024-04-12 23:32:47 +08:00
Haojun Liao 6127185e3b fix(tsdb): set correct initial value for compare. 2024-04-12 14:10:43 +08:00
Haojun Liao efdd0c8a2a refactor: do some internal refactor. 2024-04-11 22:34:47 +08:00
Haojun Liao 5ee40fb5c9 fix(tsdb): fix invalid free 2024-04-11 18:38:17 +08:00
kailixu e0f7b14ffa fix: eliminate double free 2024-04-11 11:41:05 +08:00
Haojun Liao 563efeb560 fix(tsdb): fix memory leak. 2024-04-11 11:09:57 +08:00
Haojun Liao 1f85a47cab fix(tsdb): fix memory leak. 2024-04-11 10:47:05 +08:00
Haojun Liao 79be7eea8c fix(tsdb): fix invalid read, and do some internal refactor. 2024-04-11 10:06:07 +08:00