Commit Graph

1722 Commits

Author SHA1 Message Date
Simon Guan 62da23b848 Merge branch 'main' into merge/mainto3.0 2025-03-20 22:43:38 +08:00
kevin men 80711ce100
docs: use source code reference in the Perspective documentation. (#30301)
* docs(zh): add perspective document

* docs(zh): fix errors in the document

* docs(zh): increase the font size of the image

* docs(en): write a Perspective English document

* docs(en): add Perspective English document

* docs(en): add perspective docsument images

* docs: add perspective docsument source code use reference

* docs: add perspective docsument images notes

* docs: adjust perspective docsument format

* docs: delete blank lines

* Update 02-perspective.md

docs: delete blank lines in multiple documents
2025-03-20 20:27:04 +08:00
Simon Guan 08da50dc8f Merge branch 'main' into merge/mainto3.0 2025-03-20 17:52:00 +08:00
kevin men 3f0a880faa
docs: add the English document for Perspective. (#30300)
* docs(zh): add perspective document

* docs(zh): fix errors in the document

* docs(zh): increase the font size of the image

* docs(en): write a Perspective English document

* docs(en): add Perspective English document

* docs(en): add perspective docsument images
2025-03-20 17:32:45 +08:00
Alex Duan d27848fe3b
docs: query forbid super table and special-table together (#30284)
* docs: query forbid super table and special-table together

* fix: taosBenchmark official case add to CI

* fix: tmq check consumer result

* docs: adjust json format and add note tips for both query

* docs: json format indent for query.json

* fix: forbid both query from v3.3.5.6
2025-03-20 15:59:07 +08:00
Simon Guan 2c27c10fa8 Merge branch 'main' into merge/mainto3.0 2025-03-20 14:05:45 +08:00
Linhe Huo dda5bc6afe
docs: add security connection tutorial (#30288) 2025-03-20 10:39:06 +08:00
She Yanjie 0baea6ad8e
add c stmt2 example to doc (#30286)
* add: stmt2 insert example

* fix: free all heap

* format code

* add c stmt2 example

* update en doc desc

* mod makefile

---------

Co-authored-by: pengrongkun94@qq.com <pengrongkun94@qq.com>
2025-03-20 09:32:45 +08:00
liuyao 396a01de16
doc(stream): add new trigger type (#30276)
* doc(stream): add new trigger type

* doc: adjust stream doc

* doc: adjust doc
2025-03-19 19:20:50 +08:00
WANG MINGMING c291aea0f6
docs: add defination of tmq_config_res_t & fix spell error (#30271) 2025-03-19 17:21:58 +08:00
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
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
Jinqing Kuang cd69cd3fd9
docs(query): enhance time window clause descriptions in the documentation 2025-03-19 15:18:27 +08:00
Hongze Cheng 93825d49b1
feat: change the max value of minFreeDiskSize to 2TB (#30250)
* feat: change the max value of minFreeDiskSize to 2TB

* fix: CI test case change

* enh: remove useless comment
2025-03-19 14:03:37 +08:00
Linhe Huo be8a0cc627
docs: add notes for password handling in Node.js (#30267) 2025-03-19 13:35:15 +08:00
kevin men 296eee3b40
docs: upgrade the node.js connector version (#30264) 2025-03-19 11:15:22 +08:00
Linhe Huo d7c75f3b26
docs: fix password tutorial display (#30263) 2025-03-19 11:00:00 +08:00
Simon Guan 1099d91280
fix: update error codes while balance leader (#30261) 2025-03-19 10:52:02 +08:00
WANG MINGMING 3fafecb242
feat[TS-6137]: support sliding in force_window_close (#30203)
* feat[TS-6137]: support sliding in force_window_close

* feat[TS-6137]: support sliding in force_window_close

* feat(stream): force window close support interval sliding

* feat[TS-6137]: support sliding in force_window_close

* feat[TS-6137]: support sliding in force_window_close

* feat[TS-6137]: support sliding in force_window_close

---------

Co-authored-by: 54liuyao <54liuyao@163.com>
2025-03-19 10:22:06 +08:00
Linhe Huo 7c3d6a35b4
docs: add password tutorial for all components (#30253)
Close [TS-6000](https://jira.taosdata.com:18080/browse/TS-6000)
2025-03-19 10:10:06 +08:00
xinsheng Ren 789f36edda
docs: udf function, extract_avg (#30244) 2025-03-18 17:52:21 +08:00
She Yanjie 2d57795e70
add jdbc decimal (#30246) 2025-03-18 17:13:39 +08:00
WANG MINGMING 3bc6635de3
feat[TS-6115]: support deletion of topics with active consumers. (#30232)
* feat[TS-6115]: drop topic & consumer group in force

* feat[TS-6115]: drop topic & consumer group in force

* feat[TS-6115]: drop topic & consumer group in force
2025-03-18 14:11:00 +08:00
Simon Guan a70e840df6
docs: update keywords (#30234)
* docs: update keywords

* docs: minor changes

* docs: minor changes

* docs: fminro changes
2025-03-18 13:49:23 +08:00
WANG MINGMING 930b57b770
feat: support fill_history 1 async when creating stream (#30185)
* feat:[TS-5617]use last_row cache mode if creating stream in fill_history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* fix: heap use after free

* feat: add log

* fix: ci case error

* fix: compile error in windows

* fix: ci case error

* fix: heap user after free

* fix: memory leak

* fix: ci case error

* fix: ci case error

* fix: ci case error

* feat: support fill_history 1 async when creating stream

* feat: support fill_history 1 async when creating stream

* fix: compile error

* feat[TS-5617]: support fill_history 1 async when creating stream

---------

Co-authored-by: yihaoDeng <yhdeng@taosdata.com>
2025-03-18 10:01:33 +08:00
Simon Guan cf8d7cd0ac Merge branch 'main' into merge/mainto3.0 2025-03-17 21:42:42 +08:00
Zhiyu Yang 03b4cb6d47
docs(backup): en docs of support s3 restore (#30039) 2025-03-17 17:35:10 +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
Zhixiao Bao af7e34e189
feat(keep): support keep on super table level. (#30097)
* Feat: support use keep while create super table.

* Test(keep): add test for create super table with keep option.

* Feat(keep): Add tmsg for create keep.

* Feat(keep): support alter table option keep.

* Fix(keep): Add baisc test for alter table option.

* Fix(keep): memory leek.

* Feat(keep): add keep to metaEntry&metaCache and fix earliestTs with stn keep.

* Test(keep): add some cases for select with stb keep.

* Fix: fix ci core while alter stb.

* Feat(keep): delete expired data in super table level.

* Feat: remove get stb keep while query.

* Fix : build error.

* Revert "Fix : build error."

This reverts commit 0ed66e4e848e5528d57f5a7c9fa7600c4742a71c.

* Revert "Feat(keep): delete expired data in super table level."

This reverts commit 36330f6b4c587bc126d3f75480d81e637d7601e6.

* Fix : build errors.

* Feat : support restart taosd.

* Fix : alter table comment problems.

* Test : add tests for super table keep.

* Fix: change sdb stb reserve size.

* Test: add more tests.

* Feat: Disable normal tables and sub tables from setting the keep parameter

* Fix: add more checks to avoid unknown address.

* Docs: Add docs for stable keep.

* Fix: some review changes.

* Fix: review errors.
2025-03-14 16:10:13 +08:00
Simon Guan 1a6becbd2b Merge branch '3.0' into merge/mainto3.0 2025-03-14 14:54:02 +08:00
WANG MINGMING 3d053e2c9b
feat(stream): optimize client logic of creating stream if with history (#30059)
* feat:[TS-5617]use last_row cache mode if creating stream in fill_history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* feat(stream): optimize client logic of creating stream if with history

* fix: heap use after free

* feat: add log

* fix: ci case error

* fix: compile error in windows

* fix: ci case error

* fix: heap user after free

* fix: memory leak

* fix: ci case error

* fix: ci case error

* fix: ci case error

---------

Co-authored-by: yihaoDeng <yhdeng@taosdata.com>
2025-03-14 13:55:52 +08:00
Simon Guan b31295eca7 Merge branch 'main' into merge/mainto3.0 2025-03-14 13:33:04 +08:00
danielclow d3fca89dc9 docs: fix two links in function doc 2025-03-14 12:32:18 +08:00
Simon Guan 724facd134 Merge branch 'main' into merge/mainto3.0 2025-03-14 11:49:02 +08:00
Pan Wei ddc43ea249
Merge pull request #30166 from taosdata/docs/TD-33992/interp_main
docs: interp
2025-03-14 11:15:51 +08:00
Pan Wei b4a64236db
Update 10-function.md 2025-03-14 11:14:45 +08:00
factosea 08a85d05f0 docs: interp ins 2025-03-14 09:40:11 +08:00
zyyang 32505dacec docs(opc): support request_ts#TS-5728 2025-03-13 21:04:08 +08:00
factosea 15146174aa docs: interp 2025-03-13 19:15:09 +08:00
dapan1121 90fcd168c9 Merge remote-tracking branch 'origin/3.0' into feat/TS-5992 2025-03-13 15:32:26 +08:00
dapan1121 30a98ddcab fix: add document error code description 2025-03-13 13:54:34 +08:00
danielclow bef2519480 docs: lowercase anchors for 3.0 2025-03-13 11:50:28 +08:00
danielclow 593af04b84 docs: lowercase anchors 2025-03-13 11:42:39 +08:00
Linhe Huo b915cfdd6f
Merge pull request #30141 from taosdata/docs/helm-chart-deployment-for-community
docs(kubernetes): support community image with new helm chart
2025-03-12 20:27:42 +08:00
Linhe Huo 6e652f5a32
Merge pull request #30139 from taosdata/fix/TS-6099-3.0A
feat: add batch query new feature (3.0)
2025-03-12 20:26:16 +08:00
Linhe Huo 3383f7d87c docs(kubernetes): support community image with new helm chart
Close [TS-6081](https://jira.taosdata.com:18080/browse/TS-6081)
2025-03-12 19:59:45 +08:00
Alex Duan d80e5d5545 cherry-pick from main->add batch query new feature 2025-03-12 18:15:53 +08:00
Alex Duan 3f846984c2 feat: add batch query new feature 2025-03-12 18:03:05 +08:00