Commit Graph

354 Commits

Author SHA1 Message Date
slzhou 1185bba98b fix: pass compilation 2023-09-05 09:02:12 +08:00
slzhou 6f8c642c9a fix: use int64_t for num of rows returned 2023-09-05 09:02:06 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
Alex Duan 6877e33c87 fix: query have error get time is last successful 2023-08-23 16:49:37 +08:00
Alex Duan f45d1c69b8 fix: -t option and wal retention ci 2023-08-23 16:17:52 +08:00
Alex Duan 3f90ca4b38 fix: set max_binary_display_width can not show all text 2023-08-14 14:19:24 +08:00
kailixu d691bcfeb6 Merge branch '3.0' into fix/TD-24809-3.0 2023-07-31 08:41:44 +08:00
kailixu 9e5684479e fix: taos print version 2023-07-27 14:19:49 +08:00
wangmm0220 d031a77b58 fix:[TD-25300]dead loop if getchar return EOF in arm64 2023-07-20 15:40:41 +08:00
Ping Xiao c033592b29 fix Windows packaging issue 2023-07-18 11:00:26 +08:00
yihaoDeng 79f01ad655 add version check in rpc 2023-07-05 08:16:25 +00:00
Alex Duan 0950a832ff fix: float width set to 7 and double set to 15 2023-07-04 17:57:43 +08:00
dapan1121 3519e9170e Merge remote-tracking branch 'origin/main' into 3.0 2023-06-29 11:13:45 +08:00
Alex Duan 91a6b891aa fix: restore current database while restoring connection 2023-06-28 17:32:15 +08:00
Haojun Liao 1b9eca5ce0 other: merge main. 2023-06-15 13:03:17 +08:00
Alex Duan d7f03678b3 fix: pause and resume stream add to show help 2023-06-14 19:54:32 +08:00
Alex Duan 8018cbf639 fix: add blank line 2023-06-14 19:35:55 +08:00
Alex Duan 0fac3f7d84 fix: add compact split resume stream pause stream to tab key 2023-06-14 19:27:47 +08:00
Alex Duan 4d3d48d3b7 fix:uniform output csv format with shell output 2023-06-13 18:06:27 +08:00
Alex Duan e30cdd03de fix:uniform output csv format with shell output1 2023-06-13 18:03:26 +08:00
Alex Duan 94d056e67f fix:uniform output csv format with shell output 2023-06-13 18:00:52 +08:00
Dingle Zhang 984211f3b4
Feature/3.0 geometry (#21037)
* Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.

* add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling

* change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh

* Add a function MakePoint() and introduce a lib geometry

* implement sql functions GeomFromText() and AsText()

* Use GEOS *_r funcions instead for thread safety

* Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
Add geosWrapper to wrap the basic GEOS functions for TDEngine.

* refactor AsText and MakePoint functions to be like GeomFromText

* Show WKT when print geometry data in screen
Dump hex data when dump geometry data in a file

* define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.

* set number of decimals of WKT to 6

* Implement SQL function Intersects()

* refactor geometry sql functions

* Add geosErrMsgeHandler() to get the GEOS error detail

* use threadlocal to instantiate SGeosContext
call destroyGeosContext() only if the thread exists

* remove SGeosContext *context param for all geometry functions since we use thread local one,
so that all caller do not need to know the context.

* Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.

* rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn

* Add prefix "ST_" for all geometry functions

* move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
so that all unit test tools can compile

* Add unit test for geometry lib, only test MakePoint so far

* refactor and enhance existing cases in geomFuncTest

* implement NULL type and NULL value test for geomFuncTest

* add test on geomFromText()

* add unit test on AsText() in geomFuncTest

* combine some makePointFunction test items

* add intersectsFunctionTwoColumns test
refactor on callGeomFromTextWrapper functions

* enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content

* add more cases into intersectsFunction test

* Add basic test on geometry in system test

* Add ST_GeomFromText and ST_AsText function test in system test on geometry

* add ST_Intersects function test in system test on geometry

* support to check expectedErrno in system test on geometry

* adjust geomTest unit test and geometry system test

* add geometry data type and functions in doc english version

* implement touchesFunction() in geometry lib
refactor geometry relation functions model

* separate gemFuncTest into several src files

* add unit test on touchesFunction

* support sql function ST_Touches()
add system test on ST_Touches

* add docs for ST_Touches()

* Add ST_Contains()

* Add ST_Covers()

* Add ST_Equals()

* add swapAllowed param for geomRelationFunction()
read geom2 earlier intead of at doGeosRelation()

* Add ST_ContainsProperly()

* build on windows

* Merge from 3.0 to 3.0_geometry

* change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility

* change '\\NULL' to 'NULL' back in shellDumpFieldToFile()

* add /usr/local/include into include directory

* add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 15:36:46 +08:00
Alex Duan 9e97ee9355 fix: dnode_id have blank 2023-05-17 19:15:04 +08:00
Alex Duan 7349a18111 feat: add restore command sets to taos-CLI 2023-05-17 18:58:07 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
Alex Duan be7aacc43f fix: print float with 20 width limit 2023-05-06 10:24:42 +08:00
kailixu fa822ff286 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-27 19:11:16 +08:00
dapan1121 655774c32e fix: move error msg from tsc to shell 2023-04-25 09:00:41 +08:00
Alex Duan 0822e82d64 feat: support exit by kill heart-beat thread mode 2023-04-18 17:12:04 +08:00
Alex Duan 6a9bdb9824 fix: duplicate calling shellWriteHistory 2023-04-18 13:44:26 +08:00
kailixu 50053fdc01 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-18 11:13:30 +08:00
kailixu fd3b552357 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-17 11:42:46 +08:00
Haojun Liao 9597453631
Merge pull request #20925 from taosdata/fix/TS-3106-MAIN
add option enableScience on taos.cfg to show float and double scientific notation
2023-04-14 10:28:00 +08:00
Shuduo Sang 9001b3950e
fix: improve taos shell user experience for connecting cloud (#20912) 2023-04-13 21:05:25 +08:00
Shuduo Sang 75c7cbdbbb
fix: add three more stars for shell mask for main (#20916) 2023-04-13 19:58:24 +08:00
Alex Duan 1bfeb6669e fix: remove obsolete code 2023-04-13 17:09:43 +08:00
Alex Duan eb03a0bb48 fix: adjust format 2023-04-13 16:55:22 +08:00
Alex Duan a0be0c1d06 fix: add client option tsEnableScience 2023-04-13 16:40:38 +08:00
kailixu 2daab8e65e Merge branch '3.0' into enh/TD-21161-3.0 2023-04-12 13:10:12 +08:00
kailixu 04fa4d2e87 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-12 13:05:47 +08:00
Xiaoyu Wang 8b8ac0cd77 merge main 2023-04-12 10:43:28 +08:00
Haojun Liao 20013b3f77 fix(shell): update the display of double value. 2023-04-11 17:26:05 +08:00
Xiaoyu Wang 4c04b155d5 merge main 2023-04-11 15:56:28 +08:00
Haojun Liao 171647bdbd fix(shell): update the double display. 2023-04-11 15:46:36 +08:00
Shuduo Sang 5cc85e7f41
fix: remove unused macros (#20839) 2023-04-10 15:16:28 +08:00
kailixu e976fcb91d Merge branch '3.0' into enh/TD-21161-3.0 2023-04-07 17:51:35 +08:00
Shuduo Sang 4fb5390c6f
chore: release script community main (#20808)
* chore: cus name support in script

* chore: merge with 3.0
2023-04-07 17:10:39 +08:00
Xiaoyu Wang c134432c45 merge main 2023-04-06 09:31:45 +08:00
Shuduo Sang 33c5f1cf88
chore: cus name support in shellArgument (#20754)
* chore: refactor cus prompt

* fix: client name in install.sh

* fix: -Wno-reserved-user-defined-literal

* fix: update taos-tools commit

* fix: include/os/osDir.h

* fix: check cus name

* fix: makepkg.sh

* chore: update taos-tools d194dc9

* fix: cus name

* fix: change adapter prefix

* fix: tools/*.sh

* fix: scripts

* fix: ../../packaging/tools/install_client.sh

* chore: cus domain in script

* fix: cus name in packaging/tools/install.sh

* fix: cus name in ../../packaging/tools/remove.sh

* fix: don't edit origin file

* fix: remove brand name

* fix: update taos-tools

* fix: cus name in log

* fix: compile error without cuc name

---------

Co-authored-by: chenhaoran <haoran920c@163.com>
2023-04-05 10:21:43 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00