Commit Graph

88 Commits

Author SHA1 Message Date
sunpeng 561c61ba64 docs: add docs for assignment and seek
docs: upgrade docs from python subscription
docs: support stmt via ws
docs: optimizate python document base on java document
2023-06-27 11:32:18 +08:00
huolibo bbb93c3720 enh: tmq example add all properties 2023-05-25 11:27:49 +08:00
huolibo 61df1a1b21 enh: stmt insert demo 2023-05-24 17:23:31 +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
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 758bcb901a
docs: fix example tmp (#21197) 2023-05-06 22:55:44 +08:00
Adam Ji 4295063bea docs: remove db in sml struct 2023-04-24 08:54:30 +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 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
kailixu e976fcb91d Merge branch '3.0' into enh/TD-21161-3.0 2023-04-07 17:51:35 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00
kailixu 37bc1bca36 enh: column/row max length support up to 64K 2023-04-03 17:00:52 +08:00
wangmm0220 b7e6e4197d opti:disable set enable.heartbeat.background 2023-03-30 11:18:35 +08:00
Xiaoyu Wang 97855c6233
Merge pull request #20607 from taosdata/FEAT/TD-23257-3.0
feat: WAL cleanup not affected by topic consumption anymore
2023-03-27 17:58:31 +08:00
Adam Ji 319ec95b9d
docs: add content about req-id (#20650) 2023-03-27 17:07:33 +08:00
Benguang Zhao 6e1eed8843 fix: create database with wal_retention_period in docs/examples/csharp 2023-03-25 13:59:17 +08:00
Benguang Zhao 19883fdeed feat: alter database before creating topic in tests 2023-03-25 12:01:20 +08:00
huolibo d632f035a2
fix: adapter 3.0 (#20391) 2023-03-10 17:01:23 +08:00
sunpeng b84b8e58f5
test: add python demo for websocket (#20209)
* test: add python demo for websocket

* fix test

* fix test

* fix test
2023-03-02 20:44:25 +08:00
huolibo d7e7800520
docs: add jdbc 3.1.0 version description (#20145)
* docs: add jdbc 3.1.0 version description

* docs: fix jdbc description

* docs: add tmq over websocket demo

* docs: fix jdbc tmq demo path

* docs: docs demo in CI

* fix: add jdbc version

* docs: use subscription instead of tmq

---------

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-02-24 15:44:12 +08:00
xiaolei li 13bdd5afae
docs: update node-rest examples and reference (#20011) 2023-02-16 14:00:20 +08:00
xiaolei li e541528ab6
docs: update node-rest doc add insert sample (#20008)
* docs: update node-rest doc, add insert sample

* remove cn character in examples
2023-02-16 12:43:45 +08:00
sunpeng db6a8cdf60
build: update writing kafka example and document (#19864)
* build: update writing kafka example and document

* fixes kafka demo

* fix: refine wording

---------

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-02-09 02:08:57 +08:00
Xiaoyu Wang 4a215852b6
Merge pull request #19792 from taosdata/fix/3.0_merge_main
merge main
2023-02-05 08:51:01 +08:00
xiaolei li d0dc6dc5ef
docs(driver):update c# examples' .NET to 6.0 (#19795) 2023-02-04 13:27:10 +08:00
xiaolei li 4a87a58c65
docs(node):fix node-rest example failed (#19797) 2023-02-04 02:10:47 +08:00
Xiaoyu Wang 5d499e52f9 merge main 2023-02-03 17:13:11 +08:00
sunpeng 889019b253
build: add python demo to ci (#19699)
* build: add python demo to ci

* build: fix python demo
2023-01-31 09:37:50 +08:00
sunpeng c30cb1f5db
build: add python demo to ci (#19641)
* build: add python demo to ci

* build: add fast write example to ci

* build: add kafka demo to ci

* fix kafka demo

* fix python demo

* fix python demo

* fix python demo

* fix python demo

* fix python demo
2023-01-30 09:58:52 +08:00
sunpeng 0f3b3644de
docs: update python connector document (#19609)
* docs: update python connector document

* fix: tmq_consumer.py

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-18 00:11:45 +08:00
sunpeng dff16ad4bf
doc: update python tmq document (#19604)
* doc: update python tmq document

* doc: update en document

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-17 15:53:14 +08:00
Shuduo Sang f2ce2e94b0
fix: make example code to be tested in ci (#19594)
* fix: make example code to be tested in ci

* fix: ../docs/examples/go/go.mod
2023-01-17 12:07:38 +08:00
xiaolei li 830086e756
[WIP]docs(driver):update C# webscoket to import dll from nupkg (#17485)
* docs(driver):update C# webscoket to import dll from nupkg

* docs(driver):update description about C# using WebSocket dll from nuget package

* docs(driver):update C# webscoket to import dll from nupkg 2nd

* fix: typos

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-17 12:07:01 +08:00
Xuefeng Tan dba94bf5a0
enh(driver-go): redesign of go tmq api (#19553)
* enh(driver-go): redesign of go tmq api

* docs: add comments for reserved parameter

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2023-01-14 15:29:33 +08:00
Shuduo Sang 9e50b50597
docs: fix python connector example code mistake for3.0 (#19552)
* docs: update csharp connector status

* docs: fix csharp ws bulk pulling

* docs: clarify database param is optional to websocket dsn

* docs: fix python version and a few typos

* docs: fix jdbc version in connector matrix

* docs: update jdbc demo readme

* docs: update dot-net examples link

* docs: fix example code mistake

* fix: examples/csharp typos

* fix: examples/python/native_insert_example.py mistake
2023-01-13 14:19:24 +08:00
sunpeng e86b62e786
docs: update go tmq demo (#19139) 2022-12-26 10:01:33 +08:00
sunpeng aad6151cbd
docs: update go tmq demo (#19018) 2022-12-19 17:24:42 +08:00
Kelvin Yin f4652859be
modify: add comma 2022-12-15 17:30:47 +08:00
Shuduo Sang 0ce44c400b
fix: csharp test case (#18706)
* fix: csharp test case

* fix: return -1 if failed
2022-12-05 22:08:06 +08:00
sunpeng 4f8c04cf79
doc: writting from kafka (#18626)
* doc: writting from kafka

* rename file

* docs: typo fix

Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2022-12-02 12:47:19 +08:00
Shuduo Sang 1a12fa92d4
docs: move topic drop to early phase in python tmq example (#18350)
* docs: update examples/python/tmq_example.py with connector repo

* Update tmq_example.py

* docs: remove tb variable after get_table_name removed

* docs: move topic drop to early phase

Co-authored-by: Liu Jicong <liujicong@qq.com>
2022-11-23 09:36:26 +08:00
Huo Linhe 83815bc005 docs: update tmq demo
Close [TD-20499](https://jira.taosdata.com:18080/browse/TD-20499)
2022-11-18 11:46:00 +08:00