Commit graph

118 commits

Author SHA1 Message Date
Yihao Deng
bcabf3536a
feat: support BLOB data type (#31704) 2025-07-17 14:17:47 +08:00
wangjiaming
b3b6c3d3ff
fix(fill): fix fill next/prev got different result with asc/desc order 2025-04-03 21:24:39 +08:00
liuyao
2de6736160
feat(stream): add new trigger continuous_window_close (#30125)
* opt stream build twa result

* opt force window close memory

* feat(stream):optimize new interval and scan operator

* adj log

* opt code

* opt code

* fill history

* fix issue for fill history

* add ci

* feat(stream): add new stream nonblock interval operator

* adjust code

* use new scan operator

* use new scan operator

* add log

* fix issue

* recover stream scan next function

* fix issue

* fix issue

* fix issue

* ignore disorder data

* fix issue

* fix issue for interval sliding

* fix issue

* fix ci issue

* fix ci issue

* fix ci issue

* add semi && final nonblock interval operator

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* refactor(stream): track the msgId for each upstream tasks.

* fix(stream): fix race condition.

* fix(stream): update the task last msgId when putting into input queue succ.

* fix issue

* fix issue

* put recalculate data to rocksdb

* fix issue

* fix issue

* enh(query)[TD-33071]: add support for saving and restoring tsdbReader scan progress

- Implement functionality to save scan progress during tsdbReader operations
- Enable resuming scans from the last saved position

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* add rec interval check

* enh(stream):add recalculate tasks.

* enh(stream): support the re-calculate the tasks.

* fix issue && do refactor

* do refactor

* fix issue

* fix issue

* update backend opt

* add new interface

* add new session operator

* support blob

* add new session operator

* fix issue

* add rec state for rec task

* fix invalid read

* add new session window

* enh(stream): update the stream tasks backend.

* new session operator

* add pull data

* fix(stream): fix error in expand stream backend.

* fix issue

* fix issue

* fix issue

* merge code

* fix issue

* fix(stream): check for null ptr.

* fix(stream): add more check.

* fix issue

* fix issue

* fix issue

* add debug code

* fix issue

* fix issue

* fix issue

* set rec end flag

* fix(stream): opt re-calculate stream tasks.

* fix issue

* fix issue

* add new operator

* enh(stream): dispatch recalculate block to agg tasks.

* fix issue

* fix issue

* fix(stream): adjust filter.

* fix issue

* refactor

* refactor(stream): adjust the recalculate end block.

* fix issue

* fix(stream): set correct create trigger block.

* fix issue

* fix(stream): fix error in build recalculate end block.

* fix(stream): check null ptr.

* add stream client && fix issue

* fix mem leak

* fix(stream): free msg.

* add stream client

* fix(stream): fix error.

* add stream client && fix issue

* add stream client

* refactor(stream): set the recalculate task complete.

* add wend and group_id for session window dest table

* feat(stream): refactor and set the recalcul agg task complete.

* add cfg for adapter

* fix issue

* add state && event operator

* feat(stream): support fill-history task.

* add new fill operator

* fix(stream): set correct backend when updating fill-history task to recalculate task.

* add new fill operator

* fix(stream): s2025-03-06 11:10:31.272
et ops always open in scan tsdb

* fix(stream):set the correct taskType for sink task.

* new fill operator

* adj stream fill operator

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* fix issue

* adj test

* fix issue

* fix(stream): fix issue

* fix(steam): fix issue

* fix(steam): fix issue

* fix(steam): fix issue

* fix(steam): fix issue

* fix(stream): fix issue

* fix(stream): fix issue

* fix(stream): fix issue

* fix: ut com error

* fix(stream): fix mem leak and adjust operator type check rule

* fix(stream): fix mem leak and adjust test case

* refactor code

* fix(stream): free items.

* fix(stream): free fix memory leak.

* fix(stream): fix syntax error.

* fix: ignore unexpect block

* fix: adjust op type

---------

Co-authored-by: Haojun Liao <hjliao@taosdata.com>
Co-authored-by: Jinqing Kuang <kuangjinqingcn@gmail.com>
Co-authored-by: yihaoDeng <luomoxyz@126.com>
2025-03-14 20:14:01 +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
ea9c5d3ce6 feat:[TD-32642] add timezone for connection support 2024-11-28 18:59:54 +08:00
wangjiaming0909
d1d6689684 add not fill exprs for fill operator 2024-10-23 15:16:16 +08:00
54liuyao
ee26b61eb6 add log 2024-08-23 11:13:36 +08:00
54liuyao
de4f09b8fd ehn(query): remove query executor assert 2024-08-23 11:01:45 +08:00
54liuyao
a82c220645 fix issue 2024-08-15 17:38:29 +08:00
54liuyao
5589799e90 fix issue 2024-08-15 10:58:53 +08:00
54liuyao
235a082406 fix issue 2024-08-14 18:17:22 +08:00
Haojun Liao
8d751ca5e3
Merge pull request #27148 from taosdata/fix/3.0/TD-31362-TD-31359-TD-21481
1. lock not released when return
2024-08-12 17:34:25 +08:00
wangjiaming0909
19952995af fix fill order by returned wrong values 2024-08-12 15:27:15 +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
wangjiaming0909
4fd8688795 postfix exchange operator blocking due to addref failed 2024-08-09 14:43:50 +08:00
54liuyao
57068232ff fix res issue 2024-08-05 16:09:01 +08:00
54liuyao
efa65256da adj operator result 2024-07-25 19:11:32 +08:00
54liuyao
b1a4ea9472 adj operator result 2024-07-24 19:10:39 +08:00
54liuyao
58853d342d adj operator result 2024-07-24 17:34:33 +08:00
54liuyao
1d35ea137a adj query operator result 2024-07-23 10:50:16 +08:00
54liuyao
d02617aaf6 adj operator result 2024-07-22 14:42:50 +08:00
54liuyao
113cb57326 adj stream operator result 2024-07-17 19:35:35 +08:00
wangjiaming0909
d03a14506e fix fill wrong timestamp value 2024-06-28 17:31:49 +08:00
wangjiaming0909
90a8fe5581 fix: fill prev not working when desc fill 2023-12-29 15:08:56 +08:00
xsren
b2170e9791 fill data of varchar type 2023-09-18 16:03:04 +08:00
wangjiaming0909
5dedaebb01 fix: desc fill missed one window 2023-09-06 10:53:19 +08:00
Ganlin Zhao
624b6b094f fix: fix(value, null) output behavior 2023-07-21 10:14:12 +08:00
Ganlin Zhao
a7af4d9348 fix: reset interpolation buffer after last valid row for interval + fill(next) 2023-07-13 18:18:26 +08:00
Haojun Liao
706e350217 fix(query): fix error in fill and partition. 2023-06-01 14:36:42 +08:00
Haojun Liao
5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
wangjiaming0909
9a421a92f9 fix: core dump when select with interval caused by order 2023-05-24 10:32:10 +08:00
Haojun Liao
1e020a46c9 other: merge main. 2023-05-19 09:07:35 +08:00
dapan1121
e494c99839 fix: fill window end issue 2023-05-17 19:35:57 +08:00
Haojun Liao
da0d9c78ef refactor: do some internal refactor. 2023-04-28 11:42:34 +08:00
Haojun Liao
17a5691afb refactor: remove assert. 2023-04-27 15:37:33 +08:00
Ganlin Zhao
ea6c96df32 fix memory leak 2023-04-11 11:13:23 +08:00
Ganlin Zhao
3078e2d487 feat(query): INTERP support boolean type 2023-04-10 18:35:35 +08:00
Haojun Liao
7fe250412f refactor:do some internal refactor. 2023-02-20 10:13:11 +08:00
Haojun Liao
8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
Haojun Liao
0d9d2ea293 fix(query): do some internal refactor, and fix the bug when calender time duration exists in sliding and offset. 2023-02-17 18:31:32 +08:00
dapan1121
ded47e1312 Merge remote-tracking branch 'origin' into feat/TS-2502 2023-02-06 17:22:18 +08:00
dapan1121
ef89a31e8f feat: force fill function 2023-02-03 15:37:04 +08:00
dapan1121
d88f1efeb1 feat: support force fill clause 2023-02-02 17:16:30 +08:00
dapan1121
c8394cbf6e fix: add get tb from mem time info 2023-01-31 16:38:29 +08:00
54liuyao
c90a632f42 fix:fill operator fill next issue 2022-12-28 15:00:57 +08:00
dapan1121
1ae71a858b fix: fix none fill column value issue 2022-12-23 16:01:13 +08:00
dapan1121
9ab98f0230 fix: fill value issue 2022-12-22 20:56:23 +08:00
dapan1121
dacb2cd533 fix: fill null value issue 2022-12-22 14:59:41 +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
Haojun Liao
83782fb27b fix(query): fix invalid tag fill and clear nullbitmp 2022-12-02 10:07:48 +08:00