Commit Graph

194 Commits

Author SHA1 Message Date
huolibo 7365efd32b docs: add consuemr demo doc 2023-06-06 15:52:03 +08:00
huolibo 8c06bb3645 other: add jdbc consumer demo 2023-06-06 15:51:47 +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
t_max 2aad823709 fix: free assignment crash on Windows 2023-05-22 10:53:10 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
Haojun Liao 62dad38d5c refactor: do some internal refactor and add the sample code. 2023-04-24 15:25:49 +08:00
dependabot[bot] 13de495d57
chore(deps): bump spring-core in /examples/JDBC/taosdemo (#20955)
Bumps [spring-core](https://github.com/spring-projects/spring-framework) from 5.3.26 to 5.3.27.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.26...v5.3.27)

---
updated-dependencies:
- dependency-name: org.springframework:spring-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-18 10:11:30 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00
robotspace 41e29f418d
Infactor Lua connection pool implementation. (#20720)
* Do not retrieve err msg when connection is established successfully to avoid exception.

* Restore check script for lua installation.

* Infactor connection pool implementation.
2023-04-01 12:19:38 +08:00
dependabot[bot] fb883786f4
chore(deps): bump spring-core in /examples/JDBC/taosdemo (#20610)
Bumps [spring-core](https://github.com/spring-projects/spring-framework) from 5.3.20 to 5.3.26.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.20...v5.3.26)

---
updated-dependencies:
- dependency-name: org.springframework:spring-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 10:06:09 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Shuduo Sang ca0986ad3b
fix: codeql complain python code cwe (#20525) 2023-03-18 13:35:56 +08:00
wangmm0220 fa2e7b234c fix:add log for schemaless & sleep longer if modify schema error 2023-03-16 19:13:15 +08:00
robotspace d270f1bccc
Do not retrieve err msg when connection is established successfully (#20486)
* Do not retrieve err msg when connection is established successfully to avoid exception.

* Restore check script for lua installation.
2023-03-15 23:36:04 +08:00
Xiaoyu Wang f97a140a3c merge 3.0 2023-02-27 14:16:33 +08:00
huolibo 0e613ea3f3
enh(driver): add spring + mybatis type:byte[] example (#20050)
* enh(driver): add spring + mybatis type:byte[] example

* doc: add init description

* docs: add byte[] description
2023-02-25 14:48:25 +08:00
Xiaoyu Wang d6dd087f84 merge main 2023-02-25 10:29:20 +08:00
Xiaoyu Wang 58fc265b80 merge main 2023-02-24 13:26:45 +08:00
Haojun Liao 97024f1468 fix(query): fix coverity issue. 2023-02-24 09:48:34 +08:00
Haojun Liao 6e39bec448
Merge pull request #20089 from taosdata/fix/TD-22671
fix:remove useless logic in tmq
2023-02-23 17:27:00 +08:00
Xiaoyu Wang 1ab144609e merge main 2023-02-23 14:58:22 +08:00
Haojun Liao 61a7001274 fix(query): fix coverity issues. 2023-02-22 10:50:42 +08:00
dapan1121 42525b846a fix: fix issues reported by coverity scan 2023-02-22 09:58:18 +08:00
wangmm0220 b28c0ad952 fix:remove useless logic in tmq 2023-02-21 18:49:39 +08:00
Shuduo Sang 20b3f0b2da
docs: fix java example link (#19909) 2023-02-10 11:29:01 +08:00
Shuduo Sang c2591b3215
docs: fix java example link (#19873) 2023-02-08 16:21:08 +08:00
Shuduo Sang 2871fe12d8
fix: update nodejs example for 3.0 (#19765) 2023-02-03 09:28:38 +08:00
Haojun Liao 0f60ddb3cd fix(query): fix error. 2022-12-19 15:51:12 +08:00
yihaoDeng 11e7c94134 modify test case and memleak while client quit 2022-12-18 13:11:30 +08:00
dapan1121 360282e565 fix: compile issue in user env 2022-12-14 09:05:35 +08:00
dapan1121 c2f0aabc8e fix: int64 print issue 2022-12-13 19:26:56 +08:00
dapan1121 b4d3d1432f fix: invalid head file 2022-12-13 18:51:51 +08:00
dapan1121 518d60ad54 fix: fix CMakeList.txt issue 2022-12-13 18:31:51 +08:00
dapan1121 259946e0f8 fix: add cmake file 2022-12-13 18:21:30 +08:00
dapan1121 186384dda3 fix: refact some example files 2022-12-13 15:26:16 +08:00
Shuduo Sang 1e8323fac8
docs: update examples/jdbc demo readme (#18499)
* 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
2022-11-28 00:23:52 +08:00
dapan1121 b8dd38430f
Merge pull request #17887 from taosdata/enh/add_reqId_interface
enh: add req_id interface
2022-11-07 14:17:33 +08:00
yihaoDeng 335867cd92 change gen rule 2022-11-07 10:29:02 +08:00
Shuduo Sang 953f949b6a
fix: examples/go/taosdemo.go (#17922) 2022-11-07 09:16:16 +08:00
yihaoDeng dea0e3c261 stmt reqid incr one 2022-11-06 20:59:17 +08:00
yihaoDeng 1396d7c7b8 add test 2022-11-04 19:16:37 +08:00
yihaoDeng 1613b43f49 add test 2022-11-04 19:16:04 +08:00
Liu Jicong 4b5807c7f0 fix(tmq): set precision 2022-10-26 15:54:00 +08:00
Ganlin Zhao 51e5522ca4 fix: coverity issues
CID: 399471
2022-10-17 16:45:07 +08:00
Shuduo Sang 9781c1c2d2
fix: demoapi coverity scan issues and lint warnings (#17371)
* fix: demoapi.c coverity scan issues

* fix: coverity scan issue and lint warnings
2022-10-15 20:45:01 +08:00
Shuduo Sang ceaf0970c9
fix: demoapi.c coverity scan issues (#17350) 2022-10-14 16:13:35 +08:00
Liu Jicong 41474e40bf enh(wal): auto fix 2022-10-12 02:08:58 +08:00
Liu Jicong 14c4ff1d94 add demo for stream user defined table name 2022-10-11 16:48:13 +08:00
robotspace 8a74613a13
Drop stream when test case is over. Add commands to disable built-in lualib. (#17134) 2022-09-29 10:02:53 +08:00
robotspace 16be3ca310
Remove error about stream in lua test case. (#16990) 2022-09-21 23:04:48 +08:00
Shuduo Sang 5a7ad1344b
fix: remove stream api and use tmq syntax in lua example (#16979) 2022-09-21 14:36:44 +08:00
wangmm0220 ed137b36d5 opti: test casese for tmq snapshot for taosX 2022-08-30 14:11:44 +08:00
wangmm0220 64bba07454 Merge branch '3.0' into feature/TD-14761 2022-08-29 10:16:23 +08:00
wenzhouwww@live.cn 83272a0ac5 docs: updagte taos shell as TDengine CLI for 3.0 version ,include in taos.cfg 2022-08-26 18:38:04 +08:00
wangmm0220 6b61d3c23b fix:conflicts from 3.0 2022-08-25 16:57:19 +08:00
wangmm0220 4cc2d361e1 fix:error in getting snapshot for taosX 2022-08-25 16:55:12 +08:00
Liu Jicong 24261cc90b refactor(stream): refine stream backend interface 2022-08-24 15:53:29 +08:00
wangmm0220 2afc23a120 fix:conflicts from 3.0 2022-08-24 13:59:51 +08:00
Liu Jicong 2d628491b2 feat(stream): support tdb state backend 2022-08-23 19:30:04 +08:00
wangmm0220 514711e54c feat:get data from snapshot for taosx 2022-08-23 17:28:49 +08:00
wangmm0220 43862ccd74 Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/TD-14761 2022-08-22 16:53:53 +08:00
huolibo cd22be63a4
fix(driver): jdbc sample for 3.0 (#16235)
* fix(driver): jdbc sample for 3.0

* fix: drop table if exists

* test: valgrind case

Co-authored-by: Shengliang Guan <slguan@taosdata.com>
Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2022-08-22 13:26:59 +08:00
wangmm0220 3a9c4f26c5 fix:error in snapshot for taosx 2022-08-19 16:17:10 +08:00
wangmm0220 03a187571c fix:error in snapshot for taosx 2022-08-19 15:12:04 +08:00
wangmm0220 fbc69a10c4 Merge branch '3.0' into feature/TD-14761 2022-08-18 16:45:06 +08:00
wangmm0220 d2727b6252 feat:merge from 3.0 2022-08-18 10:45:20 +08:00
Liu Jicong 853e6e2988 refactor(mnode): drop stream task 2022-08-17 19:19:58 +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
Shengliang Guan 4dd7a5f2bd Merge branch '3.0' into fix/release 2022-08-16 20:01:13 +08:00
wangmm0220 78c9f245b1 fix:conflicts from 3.0 2022-08-16 15:18:11 +08:00
Liu Jicong c4df4431cd refactor(tmq): put write logic into taosx.c 2022-08-15 18:50:28 +08:00
dependabot[bot] da45aafd8d
build(deps): bump fastjson in /examples/JDBC/taosdemo (#16096)
Bumps [fastjson](https://github.com/alibaba/fastjson) from 1.2.75 to 1.2.83.
- [Release notes](https://github.com/alibaba/fastjson/releases)
- [Commits](https://github.com/alibaba/fastjson/compare/1.2.75...1.2.83)

---
updated-dependencies:
- dependency-name: com.alibaba:fastjson
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-14 09:29:59 +08:00
dependabot[bot] e03ab2c986
build(deps-dev): bump mysql-connector-java in /examples/JDBC/taosdemo (#16097)
Bumps [mysql-connector-java](https://github.com/mysql/mysql-connector-j) from 8.0.16 to 8.0.28.
- [Release notes](https://github.com/mysql/mysql-connector-j/releases)
- [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES)
- [Commits](https://github.com/mysql/mysql-connector-j/compare/8.0.16...8.0.28)

---
updated-dependencies:
- dependency-name: mysql:mysql-connector-java
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-14 08:51:15 +08:00
dependabot[bot] 07ee835c5a
build(deps): bump spring-core in /examples/JDBC/taosdemo (#16063)
Bumps [spring-core](https://github.com/spring-projects/spring-framework) from 5.3.2 to 5.3.20.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.2...v5.3.20)

---
updated-dependencies:
- dependency-name: org.springframework:spring-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shuduo Sang <sangshuduo@gmail.com>
2022-08-14 08:50:02 +08:00
dependabot[bot] 8c7ed70023
build(deps): bump spring-expression in /examples/JDBC/taosdemo (#16062)
Bumps [spring-expression](https://github.com/spring-projects/spring-framework) from 5.3.2 to 5.3.16.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.2...v5.3.16)

---
updated-dependencies:
- dependency-name: org.springframework:spring-expression
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-14 08:42:50 +08:00
dependabot[bot] b116a948c8
build(deps): bump log4j-core in /examples/JDBC/connectionPools (#16064)
Bumps log4j-core from 2.14.1 to 2.17.1.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-13 22:36:58 +08:00
dependabot[bot] d774e70821
build(deps): bump log4j-core in /examples/JDBC/taosdemo (#16065)
Bumps log4j-core from 2.14.1 to 2.17.1.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-13 21:43:10 +08:00
Liu Jicong 95f696b30d enh(tmq): prevent drop db when topic exists 2022-08-10 17:24:47 +08:00
Liu Jicong e5e82f0cf2 merge 3.0 2022-08-10 16:31:23 +08:00
Liu Jicong 18f6fb6123 enh(tmq): speed up consumer recover 2022-08-10 16:04:03 +08:00
wangmm0220 c381ffd38c fix:error in tmq for snapshot 2022-08-09 19:06:24 +08:00
afwerar 2119997661 build: add taosBenchmark to deb 2022-08-09 18:17:22 +08:00
Liu Jicong ad032a0a90 enh(stream): stream recover 2022-08-09 10:36:27 +08:00
dapan1121 a504f1ffdd fix: remove scl change 2022-08-09 09:00:46 +08:00
Liu Jicong 48449e80c3 fix(stream): memory leak 2022-08-08 19:17:28 +08:00
wangmm0220 507adf9e7b fix:error in tmp for snapshot 2022-08-08 13:49:24 +08:00
wangmm0220 1309c489e2 fix:error in tmq for snapshot 2022-08-06 19:31:53 +08:00
plum-lihui 738909ff6b test: modify tmq example code for doc 2022-08-05 18:58:57 +08:00
Liu Jicong c67f5f10a2
Merge pull request #15595 from taosdata/feature/stream
enh(wal): add lock to guarantee read behaviour
2022-07-30 17:09:20 +08:00
afwerar 074ce5a2f8 build: remove submodule 2022-07-30 09:12:40 +08:00
Liu Jicong 6c250e75cd fix(stream): forbid histogram in stream 2022-07-29 21:28:18 +08:00
wangmm0220 ba1962cacf feat:add tmq get data interface 2022-07-26 17:43:22 +08:00
wangmm0220 d6399cafc3 feat: add interface for tmq writing raw data 2022-07-23 15:59:29 +08:00
wangmm0220 e2414b4289 feat:add main logic for writing raw data of tmq 2022-07-22 20:08:33 +08:00
wangmm0220 ccdda33ff8 fix:modify the interface of tmq meta 2022-07-18 17:17:51 +08:00
Liu Jicong 500553d581 refactor: add debug log 2022-07-18 11:41:56 +08:00
wangmm0220 3b4c2826b4 Merge branch '3.0' into feature/TD-13041 2022-07-14 10:22:15 +08:00
wangmm0220 531dfd4452 fix:error in tmq meta 2022-07-13 16:00:06 +08:00
Xiaoyu Wang 43b5ca1efe feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 15:13:01 +08:00
wangmm0220 037ea1519c fix:core dump if consumer multi vgroup message with sequence:create/alter/delete/create or create/delete/create 2022-07-13 13:42:55 +08:00