Commit graph

110 commits

Author SHA1 Message Date
Mario Peng
4f7bfed1cf
enh(stmt2):add stmt2 log (#31171) 2025-05-23 16:36:12 +08:00
Mario Peng
abd5830ef4
fix:stmt set tags memleak (#30609) 2025-04-02 19:29:30 +08:00
Mario Peng
9d86e06703
fix : geometry check NULL for interlace mode (#30514) 2025-03-27 10:07:45 +08:00
Mario Peng
8cfb45d257
fix: insert into ntb get fields problem (#30370) 2025-03-23 16:40:05 +08:00
Mario Peng
d3f537275f
fix(stmt2):stmt2 get fields return wrong when tag is value(3.3.6) (#30308)
* fix: add case

* fix: stmt2 get fields return wrong when tag is value

* enh: replace preCtb bool to flag,handle more situation

* fix: some unit test error

* diff: add case and fix some problem

* fix: remove async test, handle in TD-34077

* fix: review

---------

Co-authored-by: Simon Guan <slguan@taosdata.com>
2025-03-22 21:13:47 +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
Mario Peng
f5a339f03e
enh(stmt2): [TD-33660] interlace mode support auto create table (#30084)
* enh: remove interlace autocreate tb limit

* enh: autocreate tb with single ctb

* enh: multi-insert in one ctb

* enh: Function realization

* fix: some unit test error

fix: stmt1 unit test

* fix: review and autoCreateTb & interlace support insert into stb syntax

* fix: insert into tags fixed value auto create table

* fix: remove a wrong test

* fix: adapter segment fault

* fix: adaptor core

* fix: get fields make interlace error

* fix: adapter core problem 2

* fix: multi bind exec invalid message problem
2025-03-14 14:13:26 +08:00
Simon Guan
d7207861bb Merge remote-tracking branch 'origin/3.0' into fix/internal 2025-03-03 10:43:07 +08:00
Simon Guan
c0932e3ce0 refactor: adjust some logs 2025-02-28 23:22:38 +08:00
pengrongkun94@qq.com
703a9924a4 fix:review 2025-02-28 16:16:15 +08:00
Simon Guan
76ad364b93 enh: adjust some logs 2025-02-27 09:55:11 +08:00
pengrongkun94@qq.com
10f3a388f2 add row format bind control argument 2025-02-26 20:04:33 +08:00
pengrongkun94@qq.com
8cf363fbf3 Merge remote-tracking branch 'origin/3.0' into enh/3.0/TD-32686 2025-02-26 10:36:19 +08:00
pengrongkun94@qq.com
e46913e1fe enh stmt2 TD-33802 2025-02-20 18:35:34 +08:00
pengrongkun94@qq.com
2279e931b8 fix row clear problem 2025-02-05 18:30:30 +08:00
pengrongkun94@qq.com
0992136ef5 fix disorder row build problem 2025-01-27 12:58:07 +08:00
pengrongkun94@qq.com
19e4d80835 fix insert into ? values(?,?) 2025-01-17 15:53:47 +08:00
pengrongkun94@qq.com
3b741a26fa fix col clone and release problem 2025-01-17 15:53:37 +08:00
pengrongkun94@qq.com
e362a045c0 test code 2025-01-17 15:53:29 +08:00
pengrongkun94@qq.com
6a0206d317 fix some case error 2024-12-23 10:57:35 +08:00
Haolin Wang
02bd68be22 morefix: not allow duplicate table names in stmt2 bind with interlace mode 2024-12-17 20:22:25 +08:00
Haolin Wang
074c3e7eb2 fix: enable client dedup for stmt/stmt2 inserts in interlace mode 2024-12-17 10:41:07 +08:00
Pengrongkun
3d2156aa98 refactor stmt2_get_fields 2024-12-17 09:31:30 +08:00
Pengrongkun
5cadc797a4 fix mem leak 2024-12-14 19:09:29 +08:00
Pengrongkun
9ba9b21ff0 fix stmt_get_tags error code 2024-12-11 11:29:18 +08:00
WANG MINGMING
4a3eda51e0
Merge branch '3.0' into feat/TD-32642 2024-12-10 14:11:47 +08:00
Shengliang Guan
b99f32b8f0 Merge branch '3.0' into merge/mainto3.0 2024-12-09 19:06:11 +08:00
Shengliang Guan
e99b888654 Merge branch 'main' into merge/mainto3.0 2024-12-09 19:06:06 +08:00
WANG MINGMING
88f0a42cdc
Merge branch '3.0' into feat/TD-32642 2024-12-07 20:43:26 +08:00
Pengrongkun
ad9ed168ee add test and fix tagbound schema problem 2024-12-06 16:42:51 +08:00
wangmm0220
0165684131 feat:[TD-32642] merge from 3.0 2024-12-05 23:47:46 +08:00
Pengrongkun
e844eea30f fix some bugs 2024-12-05 20:09:16 +08:00
Pengrongkun
7705a5856e Merge remote-tracking branch 'origin/3.0' into TD-32937-2 2024-12-05 14:00:58 +08:00
Pengrongkun
ede70d0465 stmt2 support insert into stb(?)values(tbname) 2024-12-05 13:59:24 +08:00
Pengrongkun
3146db60a1 1.taos_stmt2_get_stb_fields add query type nums
2.all fields add presision
2024-12-04 11:01:42 +08:00
Pengrongkun
7610e6d174 fix stmt2 get fields bug 2024-12-03 10:49:01 +08:00
wangjiaming0909
718b0ad16e replace unsafe functions 2024-12-02 13:46:07 +08:00
Pengrongkun
653eff8c1a taos_stmt2_get_stb_fields support insert into ? using stb tags(?) values(?) 2024-11-29 10:12:29 +08:00
wangmm0220
0e2a16d70f feat:[TD-32642] add charset for connection support 2024-11-27 14:25:34 +08:00
Pengrongkun
09a9298de7 TD-32797:fix array realloc problem 2024-11-22 17:43:54 +08:00
Pengrongkun
f3b4aa14be add checkWKBGeometry function 2024-11-19 16:44:28 +08:00
Pengrongkun
ff2d0e6d67 fix CI problem 2024-11-19 09:22:34 +08:00
Pengrongkun
a774d3b428 fix some review problem 2024-11-16 09:27:52 +08:00
Pengrongkun
8d5508a7a6 fix compile problem 2024-11-16 08:52:57 +08:00
Pengrongkun
6f3c6548cb add geometry check during stmt_bind_param 2024-11-14 21:25:14 +08:00
Pengrongkun
b011ef49e0 TD-32120:add api taos_stmt2_get_all_fields
fix some format

convert TAOS_FIELD_E to TAOS_FIELD_ALL, to prevent modifications to the original API

rename taos_stmt2_get_stb_fields

refact parse for ctbname parameterized

refactor some code, fix some core problem.
2024-11-04 16:59:13 +08:00
Hongze Cheng
e260eb7a07
Revert "enh(stmt2):add api taos_stmt2_get_all_fields" 2024-10-31 13:35:42 +08:00
Pengrongkun
3895a7707a convert TAOS_FIELD_E to TAOS_FIELD_ALL, to prevent modifications to the original API 2024-10-30 18:12:08 +08:00
Pengrongkun
aa3c79100b fix some format 2024-10-30 14:24:10 +08:00
Pengrongkun
e9feec94b3 TD-32120:add api taos_stmt2_get_all_fields 2024-10-29 17:27:48 +08:00