Commit Graph

524 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
Linhe Huo 73d4e5f850
Merge pull request #30091 from taosdata/enh/TS-6003-3.0
enh: password extend length 255 for taos taosdump taosBenchmark
2025-03-14 16:54:23 +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
Alex Duan 8126a38993 Merge branch '3.0' into enh/TS-6003-3.0 2025-03-12 20:51:03 +08:00
factosea 8f5134913c feat: test case 2025-03-11 13:38:57 +08:00
factosea b3ef8b2f44 fix: print folat when title name is too long 2025-03-11 13:38:57 +08:00
factosea 36183aa36b feat: greatest func 2025-03-11 13:38:57 +08:00
Alex Duan 6c25d88f14 fix: scanf set length from 128 to 255 2025-03-10 11:54:18 +08:00
Simon Guan 609ff730c4 refactor: jemalloc options 2025-03-07 10:03:43 +08:00
dongming chen e5fb75797a
Merge branch '3.0' into feat/TS-5927-long-password 2025-03-05 12:15:12 +08:00
Linhe Huo 3e2fbed1d7
Merge pull request #29873 from taosdata/enh/TD-33800-3.0
enh: coverage for taos-tools support websocket
2025-02-26 17:03:57 +08:00
Alex Duan 33f4a4926d modify taos CopyRight from 2023 to 2025 2025-02-25 15:28:00 +08:00
Alex Duan cbf279470d fix: use db change output with printf 2025-02-23 16:13:33 +08:00
Alex Duan c7e4680e3a fix: -R -h can coredump and memory leak 2025-02-22 22:03:48 +08:00
Alex Duan 3afbb9e6b1 Merge branch '3.0' into enh/TD-33800-3.0 2025-02-22 18:04:13 +08:00
Alex Duan ad64b681c8
ci: taosBenchmark add coverage cases branch 3.0 (#29788)
* fix: add unit test for taos-tools

* fix: only .cpp include

* fix: remove no use function

* fix: restore toolsSys.c

* fix: add toolsSys case

* fix: rebuild error fixed

* fix: fix build error

* fix: support get vgroups with core and memory limit

* fix: build error for strcasecmp

* fix: add insertBasic.py case

* fix: add command line set vgroups=3

* fix: change with ns database

* toolscJson read with int replace float and add insertPrecison.py

* fix: add insertBindVGroup.json case

* fix: remove public fun removeQuotation

* fix: vgroups change method

* fix: memory leak for runInsertLimitThread slot

* insertPrecision.py word write wrong

* fix: check isFloat number

* fix: vgroups change logic error

* fix: insertBasic.py real and expect error

* fix: adjust default vgroups

* fix: adjust default vgroups modify comment
2025-02-21 17:00:44 +08:00
Alex Duan d99709969b fix: add desc command 2025-02-21 13:05:31 +08:00
Shengliang Guan bf3e10c36e fix: compile errors 2025-02-17 11:42:10 +08:00
dmchen bbf169f5bc feat/TS-5927-long-password-add-case 2025-02-14 03:35:37 +00:00
Alex Duan 22ca66b25c fix: restore cur_name.h 2025-02-13 13:16:39 +08:00
Alex Duan 400254820c fix: remove cur_name.h content to tdef.h and del cur_name.h 2025-02-13 13:00:46 +08:00
factosea dfc953074e fix: format case 2025-02-11 19:20:16 +08:00
factosea 54b1f37b1d fix: shell print float 2025-02-11 19:20:02 +08:00
Shengliang Guan 51dc096494
Merge pull request #29530 from taosdata/fix/TD-31605/crashLog
fix: write crash log in new thread
2025-01-10 11:22:47 +08:00
factosea 893e7c1af4 fix: write crash log in new thread 2025-01-09 10:00:43 +08:00
kailixu 869f037168 fix: incorrect prompt when log on taos without sysinfo privilege 2025-01-07 19:55:32 +08:00
kailixu 75c43517be fix: incorrect prompt when log on taos without sysinfo privilege 2025-01-07 19:52:13 +08:00
kailixu 82d32cff23 fix: incorrect taos shell prompt when log on taos without sysinfo privilege 2025-01-07 15:37:41 +08:00
wangmm0220 0165684131 feat:[TD-32642] merge from 3.0 2024-12-05 23:47:46 +08:00
kailixu c8df537dbf log: enable log output only on linux 2024-12-03 14:52:35 +08:00
kailixu 4f33875f16 chore: disable log output on windows platform 2024-12-03 12:25:24 +08:00
kailixu 57afdc6612 fix: compile problem of log rotate on windows 2024-12-01 14:51:12 +08:00
kailixu 4b2aea8100 Merge branch '3.0' into enh/TD-30933-3.0 2024-11-29 13:41:25 +08:00
kailixu b4e6e2dfa8 enh: support specify log output by -o option 2024-11-29 13:40:33 +08:00
Shengliang Guan 8c79fa5734
Merge pull request #28945 from taosdata/enh/TD-31831-3.0
add describe many columns over 100 case
2024-11-28 19:57:00 +08:00
Alex Duan cdbb473f7d restore shellArguments.c no modify status 2024-11-28 17:20:13 +08:00
Alex Duan 47625d6ddc fix: add to help command 2024-11-28 17:12:12 +08:00
Alex Duan 9f90934029 fix: adjust prompt text review with Daniel 2024-11-28 17:06:49 +08:00
Alex Duan d83bb1c9c1 fix: add semicolon to email address 2024-11-28 16:52:08 +08:00
Alex Duan 7cd57f906f fix: lost right quotation 2024-11-28 16:50:11 +08:00
Alex Duan 5882d6bbe7 fix: adjust show text and format 2024-11-28 16:48:09 +08:00
Alex Duan 42b4bc97de enh: add three code show detail info remove quota 2024-11-28 14:33:42 +08:00
Alex Duan 28a2dea8fd enh: add three code show detail info 2024-11-28 14:23:39 +08:00
Alex Duan 8c3a5e2464 fix: reduce show text length 2024-11-28 11:03:07 +08:00
Alex Duan c4a5969d7f uniform show format 2024-11-28 10:41:06 +08:00
Alex Duan cf18ffe4ce feat: add error code to show 2024-11-28 10:24:22 +08:00
Alex Duan 9f6aac4b73 fix: add desc command 2024-11-27 13:45:58 +08:00
wangmm0220 2ca9f9c8ce feat:[TD-32642] merge from 3.0 2024-11-26 00:13:43 +08:00
wangmm0220 69da972796 feat:[TD-32642] add timezone logic 2024-11-22 18:31:51 +08:00
Shengliang Guan 2d13ce5105 refact: rename taos lib name 2024-11-22 15:33:55 +08:00