Commit graph

188 commits

Author SHA1 Message Date
Tony Zhang
cc5be3b3ec
fix: core at last query when memory is exhausted (#33108) 2025-09-28 15:42:19 +08:00
Tony Zhang
84662bdce8
fix: last/last_row errors when using together with cols (#32938) 2025-09-12 09:25:43 +08:00
Tony Zhang
ded3be494b
Revert "fix: the cols function returns incorrect results when fetching multiple timestamps. (#32743)" (#32897) 2025-09-05 19:30:55 +08:00
Tony Zhang
b204ac8a23
fix: the cols function returns incorrect results when fetching multiple timestamps. (#32743) 2025-08-29 18:07:35 +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
Jinqing Kuang
513ccaaad8 fix(query)[TD-33008]. fix error handling in tsdbCacheRead
Fix an issue that a freed null pointer was accessed during error
handling in tsdbCacheRead, which would cause a crash.
2024-11-25 15:11:53 +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
Shungang Li
e3beccbde1 enh: add more log for last cache retrieve 2024-11-05 13:49:38 +08:00
Jing Sima
6231d46cc5 enh:[TD-32189] Add validation to prevent changes to resultinfo structure. 2024-10-12 15:14:59 +08:00
Pan Wei
fa9f8f257b
Merge pull request #27984 from taosdata/enh/TD-31691
enh:modify error code passing
2024-09-20 08:44:07 +08:00
lyh250-666
ae7dde1aa2 enh:modify error code passing 2024-09-19 19:51:51 +08:00
Pan Wei
380470bceb
Merge pull request #27918 from taosdata/enh/TD-32130-3.0
enh(query)[TD-32130]. Handle return values of memory allocation functions
2024-09-19 16:32:08 +08:00
Hongze Cheng
c0b3cc17fc
Merge pull request #27899 from taosdata/enh/TD-32121-3.0
enh: retrieveRows no more if got all data
2024-09-19 09:12:14 +08:00
Jinqing Kuang
4b46c4c1fc enh(query)[TD-32130]. Handle return values of memory allocation functions 2024-09-19 09:06:01 +08:00
Shungang Li
0fd4928dc2 enh: retrieveRows no more if got all data 2024-09-14 17:02:38 +08:00
xsren
1b48080a94 fix: os return 2024-09-14 11:47:20 +08:00
Minglei Jin
8547b8c942 fix(tsdb/cache/read): comment lastTs out to load stt data 2024-09-13 09:54:26 +08:00
Haojun Liao
4319cacdc3 fix(query):fix invalid read. 2024-09-11 19:09:17 +08:00
Hongze Cheng
63b64a90c0 enh: remove void with error code handle 2024-09-10 13:12:05 +08:00
xsren
c98f6daf11 errcode cast 2024-09-09 10:21:57 +08:00
xsren
3fb89fb814 fix: distinguish the calling scenarios of the metaGetTbTSchema function 2024-09-06 14:16:58 +08:00
lyh250-666
06daf85130 Modify error code passing for taosMemoryCalloc function in vnode 2024-08-27 17:37:01 +08:00
Shungang Li
f8ffc4b08a fix: (last) handle memory leaks in exception branch 2024-08-22 16:32:46 +08:00
Shungang Li
b4ee6bb16a fix: (pk) memleak in tsdbRetrieveCacheRows 2024-08-21 14:17:50 +08:00
Haojun Liao
b21cc86ce3 fix(query): check return value. 2024-08-06 17:48:28 +08:00
Haojun Liao
59d190508d fix(query):check return code 2024-08-06 16:46:40 +08:00
Haojun Liao
4d8064c950 fix(tsdb):fix invalid return code. 2024-07-23 19:16:06 +08:00
Haojun Liao
3bddd051ca other: merge 3.0 2024-07-23 17:18:55 +08:00
Haojun Liao
7497f193c7 fix(stream): check return value, and do some internal refactor. 2024-07-23 14:47:29 +08:00
Shungang Li
50e802d1d8 fix: tsdbRetrieveCacheRows free memory issue 2024-07-23 10:13:24 +08:00
Shungang Li
44fa1636f2 fix: (last cache) compare pk when merging ctb data 2024-07-22 16:58:13 +08:00
Haojun Liao
dd590f36e2 refactor: do some refactor. 2024-07-15 23:53:12 +08:00
Haojun Liao
51e9723d66 refactor: do some refactor. 2024-07-15 19:37:52 +08:00
Shungang Li
7ae4415890 fix: refactor lastcache ser/des for compatibility 2024-05-09 19:04:11 +08:00
Haojun Liao
59a3e8ca40 fix(tsdb): overlap check take pk into consideration. 2024-04-25 23:25:24 +08:00
Haojun Liao
ac860f7fe8 fix(query): add ts in cache_scan_operator if pk exists and only retrieve ts column. 2024-04-25 09:29:42 +08:00
Haojun Liao
ace5e12e65 fix(tsdb): set the correct lflag when creating tsdbCache reader. 2024-04-23 19:25:51 +08:00
Haojun Liao
1e89b86827 refactor: do some internal refactor. 2024-04-12 13:51:29 +08:00
Haojun Liao
980382d433 fix(tsdb): fix memory error. 2024-04-10 11:18:08 +08:00
Shungang Li
bc1c7545a8 mock commit for pk last read, need to revert 2024-04-07 17:31:06 +08:00
Haojun Liao
f61596706d fix(tsdb): add attributes for cache scan optr. 2024-03-26 17:34:30 +08:00
Hongze Cheng
710a8ccbf2 fix more code 2024-03-08 13:14:54 +08:00
Hongze Cheng
4b71031014 more code 2024-02-21 14:29:10 +08:00
dapan1121
53094f62d8
Merge pull request #24359 from taosdata/FIX/TD-27003
Fix : use last row scan when select last_row, last
2024-01-16 08:50:23 +08:00
fullhonest
fafb5b1f03 Fix TD-28018: last row num error where partition by null column 2024-01-15 18:29:41 +08:00
fullhonest
cb2ab749b5 Fix TD-27003: use last row scan when select last_row, last 2024-01-15 15:22:29 +08:00
wangjiaming0909
a6c876bbc1 fix: last/last_row crash with dropped column 2023-12-05 14:16:01 +08:00
wangjiaming0909
a6600ab23a correct colid in blockinfo 2023-11-09 15:41:01 +08:00
wangjiaming0909
3e850df3c2 fix: last(ts2), ts2, ts caused data err 2023-11-08 14:43:11 +08:00
wangjiaming0909
fc6c4fba90 feat: cache scan for select last(c), ts/c 2023-11-08 13:39:28 +08:00