Commit Graph

39 Commits

Author SHA1 Message Date
Jing Sima ccaa0b91ae
feat: [TS-4897] Add more test and fix bugs. (#30208)
* feat: [TS-4897] Fix state window wrong res when all state col is NULL.

* fix: [TD-34074] Forbid decimal type in virtual table.
2025-03-19 17:15:17 +08:00
Simon Guan 1099d91280
fix: update error codes while balance leader (#30261) 2025-03-19 10:52:02 +08:00
Jinqing Kuang ac23a4fc55
feat(stream): support stream processing for virtual tables (#30144)
* enh: add client processing

* enh: add mnode vtables processing

* enh: add mnode vtable processing

* enh: add normal child vtable support

* fix: compile issues

* fix: compile issues

* fix: create stream issues

* fix: multi stream scan issue

* fix: remove debug info

* fix: agg task and task level issues

* fix: correct task output type

* fix: split vtablescan from agg

* fix: memory leak issues

* fix: add limitations

* Update 09-error-code.md

* Update 09-error-code.md

* fix: remove usless case

* feat(stream): extract original table data in source scan task

Implemented functionality in the source task to extract data
corresponding to the virtual table from the original table using WAL.
The extracted data is then sent to the downstream merge task for further
processing.

* feat(stream): multi-way merge using loser tree in virtual merge task

Implemented multi-way merge in the merge task using a loser tree to
combine data from multiple original table into a single virtual table.
The merged virtual table data is then pushed downstream for further
processing.  Introduced memory limit handling during the merge process
with configurable behavior when the memory limit is reached.

* fix(test): remove useless cases

---------

Co-authored-by: dapan1121 <wpan@taosdata.com>
Co-authored-by: Pan Wei <72057773+dapan1121@users.noreply.github.com>
2025-03-15 17:06:48 +08:00
Jing Sima 410324746b
feat:[TS-4897] virtual table (#30098)
* feat: [TS-4897] Support create/drop/alter/show/describe vtable

* feat: [TS-4897] Support vtable's query

* feat: [TS-4897] Support create virtual supertable

* feat: [TS-4897] Support explain analyze / where / count(*) and only select ts of vtable.

* feat: [TS-4897] Add create test and fix bugs

* feat: [TS-4897] Add alter/drop test and fix bugs

* feat: [TS-4897] Add describe/show test and fix bugs

* feat: [TS-4897] Add auth test and fix bugs

* feat: [TS-4897] Fix meta/catalog/cache bugs

* feat: [TS-4897] Support select tag from virtual child table

* feat: [TS-4897] Add select test and fix plenty of bugs

* feat: [TS-4897] Add optimize rule for vtable scan / support create vtable cross database / remove enterprise constraint / fix bugs.

* feat: [TS-4897] Fix 'schema is old'

* feat: [TS-4897] Support virtual stable query

* feat: [TS-4897] Add tests and Fix bugs

* feat: [TS-4897] resolve conflict.
2025-03-15 14:10:46 +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
dapan1121 30a98ddcab fix: add document error code description 2025-03-13 13:54:34 +08:00
Simon Guan 6250adb3b1 refactor: rename udfd to taosudf 2025-03-06 22:20:52 +08:00
wangmm0220 08601c5dc9 fix: remove waitting for empty block & optimize poll logic 2025-03-05 09:32:45 +08:00
Shengliang Guan c017afb832 docs: minor changes 2025-02-24 18:14:12 +08:00
Shengliang Guan 5ad05a662a Merge branch '3.0' into feat/TS-5470-3.0 2025-02-24 16:12:47 +08:00
Jinqing Kuang 51ffff2079 feat(query)[TS-5470]: add syntax to specify minimum duration for event and state windows
Introduce the `true for` syntax to allow users to specify the minimum
duration for event and state windows. Add corresponding tests to
validate the feature. Updated the user manual with usage instructions.
2025-02-24 08:02:48 +08:00
facetosea 63dc2e1299 cols desc 2025-02-24 00:06:22 +08:00
facetosea e16b96db72 enh: translate cols in clauses 2025-02-13 03:21:27 +00:00
factosea 65e0990dc0 merge 3.0 2025-01-23 14:16:56 +08:00
wangmm0220 9afd44f510 fix:[TD-32471]set error code to terrno if tmq_consumer_poll return NULL 2025-01-08 16:53:22 +08:00
wangmm0220 63cf4c9cba fix:[TD-32471]set error code to terrno if tmq_consumer_poll return NULL 2025-01-03 11:19:40 +08:00
factosea cb1ed29872 error desc in doc 2025-01-02 15:31:02 +08:00
wangmm0220 03cdf227e8 fix:[TD-32471]set error code to terrno if tmq_consumer_poll return NULL 2024-12-31 17:25:14 +08:00
Shengliang Guan a1d088ad8a fix: ci errors 2024-12-20 13:45:10 +08:00
xiao-77 a6e1af6b42 Merge branch '3.0' into enh/3.0/TS-5007 2024-12-13 15:04:36 +08:00
Pan Wei d5aa88165d
Merge branch '3.0' into feat/TD-30268 2024-12-12 13:41:59 +08:00
dapan1121 ca15163215 Merge remote-tracking branch 'origin' into feat/TD-30268 2024-12-12 11:41:00 +08:00
xiao-77 a79fbfd318 Merge branch '3.0' into enh/3.0/TS-5007 2024-12-12 09:49:17 +08:00
Shengliang Guan 2c16747c40 Merge branch '3.0' into merge/mainto3.0 2024-12-11 19:55:04 +08:00
Shengliang Guan e21a901da4 Merge branch 'main' into merge/mainto3.0 2024-12-11 06:07:03 +00:00
Shengliang Guan c464c943ab doc: minor changes 2024-12-11 05:45:40 +00:00
Shengliang Guan 5e59081640 Merge branch 'main' into merge/mainto3.0 2024-12-11 05:42:38 +00:00
Shengliang Guan b212aec1db doc: password format 2024-12-10 12:18:11 +00:00
dapan1121 14b9979325 fix: job retry issues 2024-12-10 17:27:02 +08:00
Zhixiao Bao 405d924a6f
Merge branch '3.0' into enh/3.0/TS-5007 2024-12-10 14:32:43 +08:00
xiao-77 2e1b94ff87 Fix review errors. 2024-12-10 11:33:03 +08:00
dmchen a6287ed24f fix/create-db-log-and-return-code-doc 2024-12-09 11:04:17 +08:00
Jinqing Kuang 31d65edcdf fix(query)[TD-33144]: add description for error code 0x3113 in the doc 2024-12-06 09:52:14 +08:00
Yihao Deng ffc63d2490
Merge branch '3.0' into feat/checkErrorCode 2024-12-04 10:39:13 +08:00
Shengliang Guan f07fe92953 Merge branch '3.0' into docs/updateNewlyAddErrorCode30 2024-12-04 09:16:01 +08:00
Yihao Deng 5dde54dd3b
Merge branch '3.0' into feat/checkErrorCode 2024-12-04 09:15:46 +08:00
yihaoDeng d6fad6bacd update newly add error code 2024-12-03 18:22:30 +08:00
danielclow 1b2b510b60 docs: second round of restructuring updates 2024-12-02 17:01:27 +08:00
danielclow 064fe7e01a docs: new english docs 2024-11-25 15:25:51 +08:00