Commit Graph

1632 Commits

Author SHA1 Message Date
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
xiaolei li 2ed511c3b8
fix: remove taosTools zh duplicate release ver-2.5.0 (#21447) 2023-05-24 11:46:22 +08:00
wade zhang 8524b90f2c
Merge pull request #21443 from taosdata/docs/3.0.4.2
docs: 3.0.4.2
2023-05-24 11:28:43 +08:00
Shuduo Sang bda3e6763f
docs: update connect for jdbc version (#21426)
* docs: update csharp connector status

* docs: fix csharp ws bulk pulling

* docs: clarify database param is optional to websocket dsn

* docs: fix java connector mistake

* fix: a few typos

* fix: many typos

* docs: java connector support subscription over websocket

* fix: update 3.0 connector feature matrix

* docs: fix typos and use 3.1.0 in jdbc driver

* fix: update matrix for schemaless java status

* docs: use latest jdbc version in connect section
2023-05-23 10:33:40 +08:00
Alex Duan 36ee466ed0
Update 01-faq.md 2023-05-22 18:32:26 +08:00
wade zhang de6fc3fdaa
Merge pull request #21392 from taosdata/DuanKuanJun-patch-6
Update 01-faq.md
2023-05-22 18:17:13 +08:00
Linhe Huo cd14668ec2
Merge pull request #21408 from taosdata/docs/sunpeng/update-docs-for-tdinsight-and-monitor
docs: update docs for tdinsight and monitor
2023-05-22 17:10:32 +08:00
yihaoDeng b59da1815a add parameter 2023-05-22 06:59:07 +00:00
sunpeng bc51e25d0a docs: update docs for tdinsight and monitor 2023-05-22 14:34:56 +08:00
yihaoDeng d6b188f15d opt compile 2023-05-22 06:10:00 +00:00
yihaoDeng f67caaed1f opt compile 2023-05-22 06:09:55 +00:00
yihaoDeng 28d562a55d add parameter 2023-05-22 03:56:11 +00:00
gccgdb1234 c12996bee7 doc: refine td.connect.type 2023-05-22 11:11:52 +08:00
gccgdb1234 0a38e63c34 doc: add td.connect.type 2023-05-22 09:33:17 +08:00
Shuduo Sang 94d71f601d
docs: udf requires python 3.7+ (#21397) 2023-05-21 14:20:01 +08:00
dapan1121 70444e2d82
Merge pull request #21329 from taosdata/feat/TD-21187
feat(query): interp support ignore null value opition
2023-05-20 14:14:21 +08:00
Alex Duan 01fa7ed2c2
Update 01-faq.md 2023-05-20 11:57:15 +08:00
gccgdb1234 bd9c726e6d doc: refine kafka connector 2023-05-19 11:59:36 +08:00
wade zhang 6724640003
Update 11-kafka.md 2023-05-19 10:29:07 +08:00
wade zhang edc9175cb9
Merge pull request #21377 from taosdata/docs/wade-20230519
doc: refine Kafka source connector configuration parameters
2023-05-19 10:19:47 +08:00
Shuduo Sang 84f7c12b8d
docs: fix zh/02-intro (#21380)
* docs: fix broken links

* docs: fix zh/02-intro.md
2023-05-19 09:37:35 +08:00
gccgdb1234 3cfdbf2f0c doc: refine Kafka source connector configuration parameters 2023-05-19 08:18:29 +08:00
Ganlin Zhao 79d8b8c3d4 add zh/en docs 2023-05-17 16:06:12 +08:00
Yu Sun 1ded7a052b docs(connector-rust): update documents of connector for rust
The connector for rust has been updated to use `deadpool` as default connection pool instead of `r2d2`, and the `r2d2` was only kept for blocking mode.
2023-05-17 07:22:15 +00:00
meeki007 de0cc463e1
Correction/纠正 01-data-type.md (#21313)
# 10 
Change/改变
INT UNSIGNED  --->  SMALLINT UNSIGNED
2023-05-16 07:21:24 +08:00
xleili ea1b8e7081 docs: release v3.0.4.2 2023-05-15 18:15:51 +08:00
Shuduo Sang ef80b5b05b
docs: update grafana doc for 3.0 (#21300)
* docs: fix tab value and label

* docs: fix tab value and label

* docs: add dbname note in grafa and fix lots of unicode characters in english doc
2023-05-15 12:26:03 +08:00
Haojun Liao e12b70d268
Merge pull request #21270 from taosdata/feature/3_liaohj
merge main into 3.0 branch.
2023-05-13 19:38:38 +08:00
Shuduo Sang e573c8a4ae
docs: fix broken links (#21288) 2023-05-13 13:47:13 +08:00
danielclow 9825970795
fix markdown error (#21280) 2023-05-13 00:37:05 +08:00
Haojun Liao 181f9063e9 other: merge 3.0 2023-05-12 18:13:28 +08:00
huolibo 0a50a21df8 docs(driver): jdbc error code 2023-05-12 17:37:35 +08:00
WANG Xu 542627235c fix: kafka connector doc issues 2023-05-12 17:19:37 +08:00
Hui Li 7bd0c6553f
Update 04-stable.md 2023-05-12 15:01:30 +08:00
Hui Li 699846f09e
Update 04-stable.md 2023-05-12 14:30:18 +08:00
Haojun Liao 43e06b9132 Merge branch '3.0' into feature/3_liaohj 2023-05-12 13:36:02 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
dapan1121 9394afec68
Merge pull request #21144 from taosdata/feat/TD-19801
feat(query): support interp with super table
2023-05-12 11:37:20 +08:00
wade zhang bdaf5592bf
Update 07-tmq.mdx 2023-05-12 08:51:07 +08:00
gccgdb1234 aab47de22a doc: remove experimental.enable.snapshot 2023-05-12 08:42:40 +08:00
wade zhang 4ef2532925
Update index.md 2023-05-11 10:47:52 +08:00
wade zhang 776b4a1085
Update 24-show.md 2023-05-11 09:46:59 +08:00
wade zhang a3fa2d9c33
Update 24-show.md 2023-05-11 09:43:46 +08:00
wade zhang 62278ceeb4
Update 14-java.mdx 2023-05-10 14:43:39 +08:00
wade zhang 4fb612d3bd
Merge pull request #20684 from taosdata/docs/dclow
docs: fix broken and redirecting links in 3.0
2023-05-10 14:40:17 +08:00
huolibo 677b95d66d fix: change some description 2023-05-10 13:49:17 +08:00
huolibo 4bdc7e8951 fix: change some description 2023-05-10 13:47:14 +08:00
huolibo db4110c788 docs: formate and note of java doc 2023-05-10 13:43:26 +08:00
danielclow 59ec57bbfc
remove trailing slash on internal link 2023-05-10 13:21:23 +08:00
huolibo 785f8764d1 fix: change version 2023-05-10 12:57:44 +08:00
huolibo c1e1e5d831 docs(driver): fix format 2023-05-10 11:51:53 +08:00
wade zhang 01bee436da
Merge pull request #21223 from taosdata/docs/TD-22166
docs(driver): jdbc 3.2.1 document and error code
2023-05-10 11:18:09 +08:00
huolibo 50a24667cd docs(driver): jdbc 3.2.1 document and error code 2023-05-09 16:50:34 +08:00
Linhe Huo d2436fe06a
Merge pull request #21024 from taosdata/docs/adamji/sml-rust
docs: add example and document for rust schemaless insert
2023-05-09 16:32:48 +08:00
Adam Ji 73ecae67b6 docs: add cmd to check status of taosd for mac 2023-05-09 15:48:02 +08:00
wangjiaming0909 479bb157e0 fix: select _block_dist() from t; set the unit of Size to KB 2023-05-09 15:19:21 +08:00
Adam Ji cbdddeffec docs: add wal args 2023-05-08 10:41:22 +08:00
Adam Ji 758bcb901a
docs: fix example tmp (#21197) 2023-05-06 22:55:44 +08:00
Haojun Liao ab79674f90
Merge pull request #21189 from taosdata/54liuyao-patch-2
Update 14-stream.md
2023-05-06 18:16:52 +08:00
liuyao e48fdceb7c
Update 14-stream.md 2023-05-06 16:03:12 +08:00
Ganlin Zhao 07f714cc84 fix doc error 2023-05-06 15:06:54 +08:00
liuyao 028bfd34bf
Update 14-stream.md 2023-05-06 14:59:27 +08:00
Alex Duan fd43736e92
Update 09-udf.md 2023-05-06 10:48:31 +08:00
kailixu b396cbd33f Merge branch '3.0' into enh/TD-21161-3.0 2023-05-05 20:28:27 +08:00
Ganlin Zhao 77dc97e509 add en doc 2023-05-05 17:54:16 +08:00
Ganlin Zhao 0aec541c35 add cn docs 2023-05-05 17:34:16 +08:00
dapan1121 b3bd3799af
Update 02-database.md 2023-05-05 16:19:34 +08:00
gccgdb1234 b0e77eeb45 doc: refine the description of TABLE_PREFIX and TABLE_SUFFIX 2023-05-05 16:13:47 +08:00
wade zhang 623e6e7c2f
Update 09-udf.md 2023-05-05 14:22:29 +08:00
wade zhang 2cf2acc07c
Merge branch '3.0' into docs/wade-20230505 2023-05-05 14:10:46 +08:00
gccgdb1234 879bbe982a doc: revise doc structure of UDF 2023-05-05 14:08:21 +08:00
Alex Duan c5b4bbc6d2
Update 09-udf.md 2023-05-05 13:55:15 +08:00
shenglian zhou accdcda343 docs: add python udf english version 2023-05-05 13:21:04 +08:00
wade zhang d9a61b50e0
Merge pull request #21138 from taosdata/docs/python-udf
docs: python udf docs
2023-05-05 08:44:23 +08:00
wade zhang ed3325419c
Update 29-changes.md 2023-05-04 18:36:18 +08:00
slzhou 9f472565c9 enhance: finish python udf docs 2023-05-04 13:58:23 +08:00
shenglian zhou ba344f7b95 feat: add python udf docs 2023-05-04 11:55:09 +08:00
kailixu 8861951d56 Merge branch '3.0' into enh/TD-21161-3.0 2023-05-02 10:45:15 +08:00
Shuduo Sang cef0aba54d
docs: update taosdump doc for 3.0 (#21130)
* fix: taosbenchmark escape char for 3.0

* fix: json file for escape char

* docs: update taosdump doc
2023-04-29 00:46:23 +08:00
kailixu 6d1da918d6 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-28 18:44:29 +08:00
Shuduo Sang baf098267f
docs: update range for numOfCommitThreads (#21122) 2023-04-28 14:49:35 +08:00
wade zhang edc4bdae0d
Merge pull request #21082 from taosdata/wangmm0220-patch-3
opti:make note more specific
2023-04-28 14:35:40 +08:00
wade zhang 36418ec1e7
Merge pull request #21083 from taosdata/wangmm0220-patch-11
opti:make note more specific
2023-04-28 14:35:33 +08:00
wade zhang f8cbd157aa
Merge pull request #21084 from taosdata/wangmm0220-patch-12
opti:make note more specific
2023-04-28 14:35:22 +08:00
huolibo bac5bbc7ab
docs(driver): jdbc error code (#21114) 2023-04-28 11:43:53 +08:00
kailixu fa822ff286 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-27 19:11:16 +08:00
xiaolei li 82a053e77e
docs: fix build zh release history failed (#21113) 2023-04-27 17:37:41 +08:00
xiaolei li 801dcafd4b
docs: release 3.0.4.1 zh (#21112)
* release: upgrade default version to 3.0.4.1

* docs: release 3.0.4.1

* fix: zh doc build failed
2023-04-27 17:20:10 +08:00
xiaolei li ee74535423
docs: release 3.0.4.1 (#21109)
* release: upgrade default version to 3.0.4.1

* docs: release 3.0.4.1
2023-04-27 17:01:49 +08:00
dingbo8128 dcdfcf8e19 Merge branch '3.0' into docs/dingbo/0427 2023-04-27 15:03:43 +08:00
dingbo8128 42eafc0f17 docs:fix compile error 2023-04-27 14:48:57 +08:00
wade zhang 8e9936ed32
Update 14-stream.md 2023-04-27 08:09:39 +08:00
Haojun Liao 027eff9768
Update 14-stream.md 2023-04-26 19:08:21 +08:00
Haojun Liao cb43ac024b
Update 14-stream.md 2023-04-26 19:06:44 +08:00
Haojun Liao 7c485cb45e
Merge pull request #21096 from taosdata/54liuyao-patch-1
Update 14-stream.md
2023-04-26 17:56:46 +08:00
Haojun Liao 457ed296d3
Update 14-stream.md 2023-04-26 17:21:45 +08:00
liuyao ebf5a420e8
Update 14-stream.md 2023-04-26 17:19:47 +08:00
Haojun Liao e4d40489e7
Update 14-stream.md 2023-04-26 17:13:20 +08:00
Haojun Liao cf9567ac96
Update 14-stream.md 2023-04-26 17:04:37 +08:00
Haojun Liao f7141fdebb
Update 14-stream.md 2023-04-26 16:53:52 +08:00
Shuduo Sang 7113ded06a
docs: fix typos and use 3.1.0 in java connector for3.0 (#21095)
* docs: update csharp connector status

* docs: fix csharp ws bulk pulling

* docs: clarify database param is optional to websocket dsn

* docs: fix java connector mistake

* fix: a few typos

* fix: many typos

* docs: java connector support subscription over websocket

* fix: update 3.0 connector feature matrix

* docs: fix typos and use 3.1.0 in jdbc driver
2023-04-26 16:48:21 +08:00
Haojun Liao 24e8ff7970
Update 14-stream.md 2023-04-26 16:35:45 +08:00
Haojun Liao a98cf1277f
Update 14-stream.md 2023-04-26 16:33:23 +08:00
Haojun Liao cf57a3f3f6
Update 10-function.md 2023-04-26 16:30:40 +08:00
Shuduo Sang 41cc572cd8
docs: update connector matrix for 3.0 (#21086)
* docs: update csharp connector status

* docs: fix csharp ws bulk pulling

* docs: clarify database param is optional to websocket dsn

* docs: fix java connector mistake

* fix: a few typos

* fix: many typos

* docs: java connector support subscription over websocket

* fix: update 3.0 connector feature matrix
2023-04-26 12:41:26 +08:00
WANG MINGMING 87406f7daf
Update 30-influxdb-line.mdx 2023-04-26 10:36:22 +08:00
WANG MINGMING 20fcb4d8ac
Update 40-opentsdb-telnet.mdx 2023-04-26 10:35:39 +08:00
WANG MINGMING 455481ddcd
Update 50-opentsdb-json.mdx 2023-04-26 10:33:16 +08:00
Adam Ji 519dc0ead0
docs: fix tmq create database args (#21081) 2023-04-26 09:24:29 +08:00
Haojun Liao 19976122f4
Update 14-stream.md 2023-04-25 17:00:03 +08:00
Haojun Liao f720feb56d
Update 14-stream.md 2023-04-25 16:58:00 +08:00
kailixu 781834065a Merge branch '3.0' into enh/TD-21161-3.0 2023-04-25 08:22:08 +08:00
Haojun Liao 817dc57611
Update 14-stream.md 2023-04-24 19:00:07 +08:00
sunpeng 809fe165e7
docs: add docs for `taoskeeper with prometheus` (#21052) 2023-04-24 17:54:01 +08:00
Adam Ji 4295063bea docs: remove db in sml struct 2023-04-24 08:54:30 +08:00
Adam Ji d3540a7502 docs: update mdx en 2023-04-23 10:31:53 +08:00
Adam Ji 13ea24312d docs: add mdx en 2023-04-23 10:30:34 +08:00
Adam Ji 88e1e5145e docs: update rust.mdx 2023-04-23 10:23:27 +08:00
Adam Ji c43cdd4faf docs: add sml.mdx 2023-04-23 10:21:41 +08:00
Adam Ji ae37c254ad docs: update put telnet db name 2023-04-23 10:19:51 +08:00
Adam Ji 20bb69cc16 docs: case put sml json 2023-04-23 10:19:23 +08:00
Adam Ji bec5790c6c docs: update put telnet format 2023-04-23 10:17:20 +08:00
Adam Ji c405051bb3 docs: update put line 2023-04-23 10:16:59 +08:00
Adam Ji 14a76427f3 docs: case put sml telnet 2023-04-23 10:16:00 +08:00
Adam Ji 2e32ebe7f8 docs: case of sml put line 2023-04-23 10:12:55 +08:00
kailixu 77a8e3b213 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-21 16:04:09 +08:00
wade zhang beb082059a
Update 10-monitor.md 2023-04-21 14:40:26 +08:00
wade zhang f32f90f79a
Update 10-monitor.md 2023-04-21 14:39:48 +08:00
sunpeng c7e930088f
docs: update taoskeeper and monitor docs (#21004)
* docs: update taoskeeper and monitor docs

* fix for doc
2023-04-21 11:12:11 +08:00
wade zhang 1af9b52d9b
Update 02-database.md 2023-04-20 16:40:10 +08:00
dapan1121 95b78f327a
Merge pull request #20959 from taosdata/enh/TS-3149
enh: add param for to_unixtimestamp to return timestamp type
2023-04-19 08:54:25 +08:00
Haojun Liao 18b4694327
Update 23-perf.md 2023-04-18 19:22:52 +08:00
Haojun Liao 230adc5433
Update 23-perf.md 2023-04-18 18:38:17 +08:00
sunpeng 57e8c3c091
docs: update title for monitor doc (#20965) 2023-04-18 17:48:19 +08:00
sunpeng 1431a313b1
docs: fix for monitor doc (#20963) 2023-04-18 17:15:48 +08:00
Ganlin Zhao b2cca108a3 add documentations 2023-04-18 14:29:04 +08:00
kailixu 6b64c51bf9 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-17 13:57:51 +08:00
sunpeng 2c52b00070
docs update offcial doc monitor section (#20949) 2023-04-17 11:49:10 +08:00
kailixu fd3b552357 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-17 11:42:46 +08:00
Adam Ji 6c3a2e2c5b
docs: support schemaless insert (#20944)
* docs: support schemaless insert

* docs: code reformat
2023-04-15 22:38:28 +08:00
xleili bafff42323 docs: release ver-3.0.4.0 2023-04-14 17:50:54 +08:00
wade zhang 7df2141b82
Merge pull request #20931 from taosdata/DuanKuanJun-patch-2
Update index.md add enableScience option to taos.cfg
2023-04-14 16:23:22 +08:00
Alex Duan 0e73061440
Update index.md 2023-04-14 11:40:12 +08:00
Alex Duan 40c8f34013
Update index.md 2023-04-14 11:27:25 +08:00
Xuefeng Tan 63e49706f3
docs(taosAdapter): the automatic database creation behavior for the schemaless protocol can be configured (#20929) 2023-04-14 09:36:07 +08:00
wade zhang dd066e6b0b
Update 29-changes.md 2023-04-13 11:10:19 +08:00
wade zhang 1cc53d00d2
Update 29-changes.md 2023-04-13 11:09:14 +08:00
Shuduo Sang 226c68a91f
docs: fix connector case (#20900)
* docs: add rest api diff

* docs: use html table

* docs: use json instead of table in rest api doc

* docs: fix connector upcase
2023-04-13 10:22:51 +08:00
kailixu d4f1ee8070 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-13 09:03:21 +08:00
Shuduo Sang c1412648d0
docs: use json instead of table in rest api (#20895)
* docs: add rest api diff

* docs: use html table

* docs: use json instead of table in rest api doc
2023-04-12 21:46:19 +08:00