Commit graph

239 commits

Author SHA1 Message Date
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
Kaili Xu
13f9bddf3d
feat: support customized taos/taosd (#29736)
* feat: support TDAcoreOS

* chore: cmake options for TD_ACORE

* chore: disable lemon for TD_ACORE

* chore: add lzma2 and msvcregex

* chore: cmake for lzma2

* chore: adapt for TD_ACORE

* chore: adapt strcasecmp for TD_ACORE

* chore: adapt for geos/threadName

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE

* chore: build adapt for TD_ACORE termio

* chore: refact transComm.h for TD_ACORE

* chore: refact transportInt.h for TD_ACORE

* chore: refact trans.c for TD_ACORE

* chore: refact trpc.h for TD_ACORE

* chore: refact transCli.c/transComm.c/transSvr.c for TD_ACORE

* chore: refact uv.h for TD_ACORE

* chore: refact geosWrapper.h for TD_ACORE

* chore: refact token/builtins/udf for TD_ACORE

* chore: refact rocks for TD_ACORE

* chore: refact tsdbCache.c for TD_ACORE, use LRU cache for last/last_row, not use rocksdb

* chore: refact FAIL to _ERR to solve conflicts for TD_ACORE

* chore: restore lemon.c/lempar.c

* chore: support build lemon for TD_ACORE

* chore: refact trpc and siginfo_t for TD_ACORE

* chore: refact timezone for TD_ACORE

* chore: refact lz4 for TD_ACORE

* chore: refact TD_ACORE to make compile pass

* chore: code optimization for TD_ASTRA

* feat: support run taos with taosd integrated

* feat: support invoke taos shell

* feat: support invoke taos shell

* feat: support invoke taos shell

* chore: code optimization

* chore: fix undefined reference problem os TD_ASTRA

* chore: resolve compile problem for TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix undefined reference problem os TD_ASTRA

* chore: fix getpid

* chore: fix typo

* chore: set stack size and ajust min pack size for TD_ASTRA

* chore: fix pthread create parameters

* chore: chmod adapt for TD_ASTRA

* chore: fix trans compile problem

* chore: adapt chmod for TD_ASTRA

* chore: byte alignment for TD_ASTRA

* chore: more code for adaption of TD_ASTRA

* chore: more code for adaption of TD_ASTRA

* chore: more code for adaption of TD_ASTRA

* chore: byte alignment for TD_ASTRA

* chore: conditional compile option

* chore: adapt for TD_ASTRA

* chore: adjust taosPId and msvcregex for TD_ASTRA

* chore: log dir separator for wal build name

* chore: fix type of pointer parameter

* chore: fix compile problem of tsdbGetS3Size

* enh: get last ver from wal log for TD_ASTRA

* enh: refact wal meta ver

* enh: refact wal meta ver

* fix: typo of taosUcs4Compare

* enh: process return value of CI

* chore: more code for TD_ASTRA adaption

* chore: return value of taosCloseFile in walMeta.c

* chore: fix compile problem

* chore: fix compile problem of TD_ASTRA

* fix: update macro for tq and stream task

* chore: code optimization for TD_ASTRA

* chore: restore create log and init cfg interface

* chore: restore strncasecmp and strcasecmp

* fix: adjust the field position of SDataBlockInfo

* fix: pragma pack min size

* fix: pragma pack min size

* chore: more code for TD_ASTRA adaption

* fix: type of parameters

* chore: adapt strncasecmp and strcasecmp for TD_ASTRA

* chore: restore interface of init log

* enh: pack push optimization

* fix: taos init cfg

* add astra support

* fix: fetch the value of suid

* chore: switch of  build with udf

* add temp code

* chore: more code for TD_ASTRA adaption

* chore: add macro ERRNO to replace errno

* chore: bytes align for TD_ASTRA

* fix: remove obsolete codes

* enh: support USE_UDF macro

* fix compile error

* fix: resolve redefinition problem

* fix: compile problem of log.cpp

* fix: compile problem of osTimezone

* fix: resolve compile problem of udf

* fix: pragma definition on windows

* fix: ucs4 and stpncpy for TD_ASTRA

* fix: memory align problem for TD_ASTRA

* enh: solve memory leak for TD_ASTRA_RPC

* fix: compile problem of taosSetInt64Aligned

* fix: restore mndSubscribe.c

* fix: scalar for udf

* chore: code adaption for TD_ASTRA

* chore: code optimization for TD_ASTRA

* fix: typo of add definition

* fix: typo of macro in tudf.h

* chore: remove void to make CI pass

* enh: move macro from cmake.platform to cmake.options

* enh: byte align for hash node and error code

* chore: restore the size for lru cache

* enh: restore some code about pack push

* chore: restore the pack push in tmsg.h

* fix: add macro of pack pop for windows

---------

Co-authored-by: yihaoDeng <luomoxyz@126.com>
2025-03-14 13:32:13 +08:00
Hongze Cheng
a881103c86 more code 2025-01-08 18:13:10 +08:00
Hongze Cheng
00b0a46060 enh: add strict message check for submit message 2025-01-08 17:29:32 +08:00
wangmm0220
a95304a857 fix[TS-5812]:add params check 2024-12-25 11:59:48 +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
wangmm0220
0e2a16d70f feat:[TD-32642] add charset for connection support 2024-11-27 14:25:34 +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
wangmm0220
b0209fa463 fix:[TS-5466] tag rewrite error 2024-09-27 01:47:29 +08:00
wangmm0220
7c0b0cf9ba fix:[TS-5466] tag rewrite error 2024-09-27 01:43:36 +08:00
Hongze Cheng
cccd2483d0 ehn: remove void 2024-09-24 16:08:48 +08:00
Hongze Cheng
f8cab36045 enh: handle void 2024-09-23 14:02:29 +08:00
Minglei Jin
bad8df5ec1 Merge branch '3.0' into feat/TD-30813-2 2024-08-29 08:57:25 +08:00
Hongze Cheng
2a1e14ef24 enh: remove some assert and handle NONE and NULL in stmt 2024-08-28 14:48:25 +08:00
Minglei Jin
c7dee947cc Merge branch '3.0' into feat/TD-30813-2 2024-08-22 14:36:55 +08:00
Hongze Cheng
d334c2e8df enh: refactor some assert 2024-08-22 11:07:31 +08:00
Minglei Jin
921b7e495e stmt2/stb: no hole in bind for stb binding 2024-08-21 12:33:19 +08:00
Minglei Jin
298c4b4812 feat(stmt2): initial commit for stmt2 2024-08-15 09:28:32 +08:00
Hongze Cheng
eaa3634764 enh: refactor error code 2024-07-25 08:51:19 +08:00
Haojun Liao
dd590f36e2 refactor: do some refactor. 2024-07-15 23:53:12 +08:00
Hongze Cheng
910e03fc99 add bind api 2024-06-05 17:06:36 +08:00
54liuyao
4c603fee55 format code 2024-05-15 10:54:24 +08:00
54liuyao
ab3ba3f2e4 optimize scan tsdb 2024-05-15 09:09:20 +08:00
yihaoDeng
4948bd690d 3.0 merge compress 2024-04-15 11:38:44 +08:00
Hongze Cheng
1bcf693f07 more code 2024-04-10 15:06:43 +08:00
yihaoDeng
e71eefddfc Merge branch 'feat/TS-4243-3.0' into feature/compressData 2024-03-30 14:58:29 +00:00
yihaoDeng
d7cee5dd80 fix invalid compress/decompress 2024-03-29 13:48:58 +00:00
Haojun Liao
55bb6ab341 fix(tsdb): set correct initial value for compare 2024-03-29 18:15:03 +08:00
yihaoDeng
f607cd60e3 tsdb support compress 2024-03-15 10:22:57 +00:00
facetosea
6678a65dc4 merge ts-4243 2024-03-14 19:06:34 +08:00
factosea
5dd4d05b2e desc table 2024-03-12 16:46:41 +08:00
Haojun Liao
bc98f12798 feat(tsdb): read complex primary key from buf. 2024-03-12 14:06:59 +08:00
Hongze Cheng
acbde220bf more bug fix 2024-03-08 17:04:26 +08:00
Hongze Cheng
456db5b4c3 more code 2024-03-07 13:14:56 +08:00
Hongze Cheng
28d83d6ab6 more code 2024-03-06 16:42:54 +08:00
Hongze Cheng
f05fe86ef0 more code 2024-03-06 16:23:02 +08:00
Hongze Cheng
5ed903dd01 more code 2024-03-06 15:52:34 +08:00
Hongze Cheng
dfd725fbdb more code 2024-03-06 15:37:57 +08:00
Hongze Cheng
9b8dec7691 more code 2024-03-03 16:01:12 +08:00
Hongze Cheng
2de7f87c74 more code 2024-02-29 17:06:53 +08:00
Hongze Cheng
0f93237a4d refact more code 2024-02-29 16:13:22 +08:00
Hongze Cheng
4348781d3c refact more code 2024-02-29 14:50:24 +08:00
Hongze Cheng
a8f95f53b7 more code 2024-02-28 16:49:44 +08:00
Hongze Cheng
81d6a1479d more code 2024-02-28 14:34:37 +08:00
Hongze Cheng
d9a4e5ed0f more code 2024-02-28 10:58:42 +08:00