Commit Graph

52368 Commits

Author SHA1 Message Date
wangmm0220 a58cb1a28c Merge branch '3.0' of https://github.com/taosdata/TDengine into mark/sml 2023-05-26 10:36:52 +08:00
wade zhang 64e89620ea
Merge pull request #21484 from taosdata/szhou/enhance-udf-doc
enhance: python udf sample with numpy
2023-05-26 09:46:46 +08:00
wade zhang 57b999233d
Merge pull request #21483 from taosdata/fix/prompt-message-when-2-mnode
prompt message when 2 mnode
2023-05-26 09:35:03 +08:00
wade zhang 0ffd0c40af
Merge pull request #21482 from taosdata/enh/xftan/change-taosadapter-3.0
enh(taosAdapter): change taosAdapter to 3.0 branch
2023-05-26 09:11:42 +08:00
wangmm0220 b77544b30d Merge branch '3.0' of https://github.com/taosdata/TDengine into mark/sml 2023-05-26 09:03:36 +08:00
Haojun Liao cea8334427
Merge pull request #21449 from taosdata/refact/fillhistory
refactor: remove the module dependency.  TD-24279
2023-05-26 09:01:45 +08:00
slzhou ab4111b25e enhance: add python udf sample that uses numpy 2023-05-26 08:24:27 +08:00
Haojun Liao e24ce2111f fix: set function ptr. 2023-05-26 00:00:07 +08:00
dmchen efa1570b6e prompt message when 2 mnode 2023-05-25 20:10:40 +08:00
Haojun Liao 1e22d875b3 fix: fix dead lock. 2023-05-25 20:00:26 +08:00
t_max 34224fbaa6 enh(taosAdapter): change taosAdapter to 3.0 branch 2023-05-25 18:58:13 +08:00
Haojun Liao 1090afd108 fix(stream): add new file. 2023-05-25 18:46:53 +08:00
wade zhang ec02b60595
Merge pull request #21465 from taosdata/enh/TD-24319
enh: tmq example add all properties
2023-05-25 18:46:11 +08:00
Haojun Liao 30de31e374 fix(test): fix unit test link error. 2023-05-25 18:17:09 +08:00
wangmm0220 40fa0e0620 fix:memory leak 2023-05-25 18:07:36 +08:00
Haojun Liao b932fdb5c4
Merge pull request #21470 from taosdata/feature/TD-24070
feat:add privilege for schemaless
2023-05-25 17:52:28 +08:00
Haojun Liao c3be7b14be fix: set correct function ptr. 2023-05-25 17:51:03 +08:00
wangmm0220 d9042f5ed3 fix:memory leak 2023-05-25 17:24:11 +08:00
Shuduo Sang cd2fdf49f3
docs: update readme (#21473)
* docs: update readme with libgflags

* docs: update readme with geos

* docs: remove geometry docs

* docs: update readme
2023-05-25 16:48:47 +08:00
wangmm0220 f6fef3e9d6 feat:add privilege for schemaless 2023-05-25 14:54:21 +08:00
wangmm0220 fcba7e326c feat:add privilege for schemaless 2023-05-25 14:24:25 +08:00
Haojun Liao 0966213847 fix(arch): set the correct module api dependency. 2023-05-25 14:21:40 +08:00
wade zhang ea5301847c
Merge pull request #21464 from taosdata/fix/test-case-parameter
test case parameter
2023-05-25 13:38:32 +08:00
huolibo bbb93c3720 enh: tmq example add all properties 2023-05-25 11:27:49 +08:00
dmchen 0e41f82bb7 test case parameter 2023-05-25 11:26:11 +08:00
shenglian zhou 90f542857d enhance: improve document 2023-05-25 11:13:05 +08:00
Haojun Liao 1a206f3f4d
Merge pull request #21462 from taosdata/fix/TD-24365
fix sma sliding window
2023-05-25 10:27:22 +08:00
Haojun Liao da9f33a483 fix: fix error in set function ptr. 2023-05-25 09:56:34 +08:00
liuyao 1f81642303 fix sma sliding window 2023-05-25 09:12:10 +08:00
Yaqiang Li bf46f1ef8c
Merge pull request #21451 from taosdata/3.0-yq
implement TD-24378
2023-05-25 09:08:34 +08:00
wade zhang 511ff7130b
Merge pull request #21445 from taosdata/fix/TD-24373
fix(cache/read): associate tbname with primary ts column
2023-05-25 08:01:51 +08:00
Haojun Liao 4a42f6b983 fix: fix error in api call. 2023-05-25 00:50:03 +08:00
Haojun Liao a9b18d203d fix:fix error. 2023-05-24 23:49:26 +08:00
Haojun Liao 01f6f74fb9 fix: update the cmake file. 2023-05-24 22:27:45 +08:00
Haojun Liao ab907e3344 fix(query): fix syntax error. 2023-05-24 21:53:40 +08:00
Minglei Jin fc5d06681e cache/last_row: treat none as null with last_row 2023-05-24 18:55:51 +08:00
wade zhang 003e8d3fa7
Merge pull request #21456 from taosdata/enh/TD-24388
enh: stmt insert demo
2023-05-24 17:35:35 +08:00
huolibo 61df1a1b21 enh: stmt insert demo 2023-05-24 17:23:31 +08:00
Haojun Liao fe09705855 fix: set the init function pointer. 2023-05-24 17:13:20 +08:00
Shuduo Sang ab017bc747
docs: remove geometry docs (#21454)
* docs: update readme with libgflags

* docs: update readme with geos

* docs: remove geometry docs
2023-05-24 16:29:52 +08:00
Shuduo Sang 81af19af85
docs: update readme with geos (#21453)
* docs: update readme with libgflags

* docs: update readme with geos
2023-05-24 16:03:55 +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
Haojun Liao a566180770 fix: fix syntax error. 2023-05-24 15:16:50 +08:00
Haojun Liao 99f669434a
Merge pull request #21282 from taosdata/feature/TD-23117
feat:[TD-23117] add schema for ins_topics
2023-05-24 14:54:42 +08:00
Haojun Liao f203c7806d fix(tools): fix build failure on enterprise edition. 2023-05-24 14:52:50 +08:00
wangmm0220 fb9b0a3e86 feat:add privilege for schemaless 2023-05-24 14:34:52 +08:00
Li Ya Qiang f47a495d11 implement TD-24378 2023-05-24 14:33:17 +08:00
dapan1121 cbbbaca553
Merge pull request #21437 from taosdata/fix/TD-23955-3.0
fix: delete index filter for desc query
2023-05-24 14:05:07 +08:00
wade zhang 398bf8f322
Merge pull request #21446 from taosdata/fix/confirm-msg-when-add-learner
comfirm msg when add learner
2023-05-24 13:54:15 +08:00
Haojun Liao b2ce45b07b refactor: do some internal refactor. 2023-05-24 13:39:20 +08:00