Commit Graph

150 Commits

Author SHA1 Message Date
kailixu 83975a3c47 chore: specify the platform 2023-06-14 20:37:26 +08:00
kailixu 62c1d5cf12 enh: decrease the package size 2023-06-14 17:31:07 +08:00
yihaoDeng 4fa1cc6dd3 change link opt 2023-06-07 05:26:07 +00:00
yihaoDeng c30e3c8632 change compile opt 2023-06-06 02:34:13 +00:00
yihaoDeng 87b2d76731 Merge branch 'enh/TD-24469/m1-build' into enh/addCompileError 2023-05-29 08:23:24 +00:00
yihaoDeng 1782ecd57e Merge branch 'fix/shared_link_rocksdb' into enh/addCompileError 2023-05-29 08:20:11 +00:00
t_max f9d867f50d fix: TDengine build on macOS arm64 2023-05-29 13:20:53 +08:00
yihaoDeng 342ce14c7d Merge branch 'enh/3.0' into fix/shared_link_rocksdb 2023-05-29 02:37:47 +00:00
yihaoDeng 5933f85b56 change parameter 2023-05-25 17:51:33 +08:00
Hongze Cheng 4d526ed0cd change more 2023-05-24 18:59:09 +08:00
Hongze Cheng e4a3d1dfcf fix: link rocksdb shared library 2023-05-24 18:26:02 +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
yihaoDeng 1a8e4d7276 opt compile opt 2023-05-14 04:02:54 +00:00
Haojun Liao 236926b9ee other: merge enh/rocksdbstate 2023-05-13 19:49:28 +08:00
yihaoDeng 5708fcb5cb Merge branch 'enh/3.0' into enh/rocksdbSstateMerge 2023-05-10 08:02:16 +00:00
yihaoDeng e4e177d7fe fix compile opt on windows 2023-05-09 09:04:38 +00:00
yihaoDeng 8b48396560 add compile opt on windows 2023-05-04 09:14:28 +00:00
Minglei Jin bcd051777b rocksdb/cmake: disable iostats_context, perf_context 2023-05-04 16:06:05 +08:00
Minglei Jin 10e3b4ab4a cmake/contrib: remove debug messages 2023-04-26 17:43:28 +08:00
Minglei Jin 892cdfc656 rocks/cmake: fix building on mac 2023-04-26 17:36:12 +08:00
yihaoDeng 10582fb5e0 opt write opt 2023-04-25 09:49:28 +00:00
yihaoDeng 54f3bc2543 change write opt 2023-04-21 10:06:37 +00:00
yihaoDeng eff4257dc6 change write opt 2023-04-21 08:23:58 +00:00
Minglei Jin c9959b5bf6 dst slot for last_row 2023-04-21 14:18:04 +08:00
yihaoDeng 1da8565e29 change write opt 2023-04-21 05:42:35 +00:00
yihaoDeng 32e283482a change write opt 2023-04-21 03:34:56 +00:00
yihaoDeng 972b19d5d8 change write opt 2023-04-21 03:10:11 +00:00
yihaoDeng 710b7d9422 change write opt 2023-04-21 02:20:01 +00:00
yihaoDeng d59d3dfe0a change write opt 2023-04-21 02:17:28 +00:00
yihaoDeng 34f59fe583 change write opt 2023-04-21 02:16:00 +00:00
yihaoDeng 1efe2f23c7 change write opt 2023-04-21 01:46:07 +00:00
yihaoDeng 80a870797a change write opt 2023-04-21 01:34:49 +00:00
Minglei Jin 373a542896 contrib/rocks: build rocds by default 2023-04-20 18:42:02 +08:00
Minglei Jin ec4ea9cf5d enh(cache/rocks): base for rocks put/get 2023-04-14 18:28:15 +08:00
yihaoDeng c3d7f888e9 add backend 2023-03-26 05:46:48 +00:00
yihaoDeng 914d391845 fix tag filter 2023-03-21 12:28:16 +00:00
yihaoDeng 2d37aeabdc add backend 2023-03-20 15:33:18 +00:00
Haojun Liao 317ee1daea other: update the command. 2022-10-28 23:29:38 +08:00
Haojun Liao d87e8f0250 other: update the command. 2022-10-28 23:28:53 +08:00
afwerar da6779d11b fix: memory param over 2022-10-13 18:51:07 +08:00
Zhiqiang Wang 0b2ff85a17
fix: jemalloc compile error (#17291)
* fix: jemalloc compile error

* fix: jemalloc compile error
2022-10-11 18:53:24 +08:00
afwerar a642607c68 os: fix flashing black console error 2022-08-19 14:09:33 +08:00
afwerar 48bf21d321 build: move check into shell file 2022-08-18 17:32:08 +08:00
Huo Linhe 96ab366bec fix: remove rust-bindings, use official connector instead
Closes [TD-18455](https://jira.taosdata.com:18080/browse/TD-18455)
2022-08-17 14:01:53 +08:00
afwerar 45cc2a67ae os: fix win lack dll error 2022-08-15 16:37:40 +08:00
Zhiqiang Wang 9cba788179
Merge pull request #15561 from taosdata/fix/ZhiqiangWang/TD-17728-remove-submodule
build: remove submodule
2022-07-30 13:13:11 +08:00
afwerar 074ce5a2f8 build: remove submodule 2022-07-30 09:12:40 +08:00
Haojun Liao d29a60499a
Merge pull request #15554 from taosdata/feature/3_liaohj
refactor: do some internal refactor and opt query performance.
2022-07-29 22:34:37 +08:00
afwerar 74d3ab1f7f build: remove submodule 2022-07-29 20:12:16 +08:00
afwerar f79637f5a8 os: add win service and crashdump 2022-07-29 16:36:42 +08:00
afwerar 74e833cf4e build: remove jemalloc submodule 2022-07-28 15:48:56 +08:00
Shuduo Sang f34c3c52bd
feat: use contrib instead of submodule for tools/taosws/taosa (#15459) 2022-07-27 13:56:00 +08:00
Haojun Liao 15d8ae0fee other: merge 3.0 2022-07-05 19:22:50 +08:00
afwerar d22a413913 os: fix gtest static dynamic error 2022-07-05 11:42:30 +08:00
Hongze Cheng 4b5b3bad11 more work 2022-06-27 05:30:10 +00:00
Cary Xu 5eba0520b7 fix: init buffer to avoid invalid write 2022-05-29 01:22:58 +08:00
afwerar 93a0c69edc fix(os): win ctest error 2022-05-23 13:42:56 +08:00
afwerar bf44937dca fix(os): win compile error 2022-05-18 14:21:04 +08:00
Hongze Cheng 5b518821d7 test BDB 2022-05-14 09:16:57 +00:00
afwerar 0815843e94 fix(os): make taosd.exe taos.exe run on windows. 2022-05-13 21:42:16 +08:00
afwerar 32e6557353 fix(os): add print trace func. 2022-05-11 01:53:30 +08:00
afwerar f4f11fdc01 fix(os): fix win open file error. 2022-04-28 19:46:37 +08:00
afwerar bf9ab440a7 fix(os): fix new compilation errors. 2022-04-27 17:39:54 +08:00
afwerar 48e379f320 fix(shell): memory init error. 2022-04-27 09:48:33 +08:00
afwerar dce677a72d fix(os): fix window compilation errors. 2022-04-26 14:11:16 +08:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
Liu Jicong 32cc09ae8c remove bdb 2022-04-08 17:52:24 +08:00
Haojun Liao 0299126dfe [td-13039] fix compiler error. 2022-03-15 17:50:20 +08:00
Haojun Liao f9997a122b [td-13039] refactor and fix bug. 2022-03-15 16:51:50 +08:00
Shuduo Sang ba8d9a798e
Feature/sangshuduo/td 13063 3.0 windows (#10708)
* [TD-13063]<feature>: 3.0 on Windows

* add pthread in contrib

* fix linux compile

* fix osSemaphore

* add gnu regex for Windows

* fix compile error for Windows
2022-03-11 19:39:20 +08:00
afwerar c6de196769 [TD-13765]<fix>: redefine rand api. 2022-03-10 00:36:30 +08:00
Shengliang Guan 5891779fe1 common 2022-02-28 17:55:07 +08:00
Shuduo Sang fbbe83fc8d
[TD-13671]<fix>: gcc 11 compile error on 3.0 (#10381) 2022-02-24 13:08:21 +08:00
Liu Jicong 7bbca5e4b5 add tmq reset offset 2022-02-17 19:07:39 +08:00
Hongze Cheng 6e358fd42f Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/vnode 2022-01-24 02:12:24 +00:00
Minghao Li b76470aaab add traft demo code 2022-01-21 18:27:00 +08:00
Hongze Cheng 72ed99e867 more 2022-01-21 06:04:38 +00:00
Minghao Li b76938130e TD-12666 add vnode into vgroup one by one 2022-01-06 16:13:59 +08:00
Minghao Li 31868e951a add traft 2021-12-30 20:55:44 +08:00
Minghao Li 3f463d85d0 Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2021-12-30 15:12:00 +08:00
Minghao Li 3f3fb4a271 add node by manual operation 2021-12-28 17:44:01 +08:00
Hongze Cheng fd9feb1ac5 more 2021-12-28 13:35:21 +08:00
Hongze Cheng 6c0c1b222f more 2021-12-27 15:32:51 +08:00
Minghao Li 829fd712f7 simulate a raft KVStore, for self testing 2021-12-23 19:49:34 +08:00
Minghao Li 6dc92d703d add raft code 2021-12-22 20:40:18 +08:00
Minghao Li 82f8987534 add raftServer code 2021-12-22 17:45:52 +08:00
Shengliang Guan 1a68c651fc
Merge pull request #9241 from taosdata/feature/3.0_wxy
TD-12194 pull-in cpp-stub
2021-12-21 13:58:44 +08:00
Hongze Cheng 0896bcf715 make libuv setting work 2021-12-20 15:52:36 +08:00
Hongze Cheng d0ea2682b0 integrate libuv 2021-12-20 15:05:01 +08:00
Hongze Cheng a0ea401732 make compile 2021-12-20 14:54:48 +08:00
Hongze Cheng dafefe0b6f make compile 2021-12-20 14:44:36 +08:00
Xiaoyu Wang 70279eeb3f TD-12194 pull-in cpp-stub 2021-12-19 22:02:08 -05:00
Minghao Li 7b91d47466 add craft demo 2021-12-19 20:05:07 +08:00
Hongze Cheng 26e1504ac4 more 2021-12-06 10:14:30 +08:00
Hongze Cheng d279149609 more 2021-12-05 21:36:48 +08:00
Hongze Cheng 37405fa0e9 more 2021-12-05 21:15:56 +08:00
Hongze Cheng 4cf826825d bdb test 2021-12-05 20:38:41 +08:00
Hongze Cheng 4bcc7778db more 2021-12-05 16:24:30 +08:00
Hongze Cheng 92ec87906e reformat 2021-12-03 14:40:35 +08:00
Hongze Cheng f2df8dba65 change deps to contrib 2021-12-03 14:31:11 +08:00