Commit Graph

167 Commits

Author SHA1 Message Date
sheyanjie 3efe8d02d2 jdbc release 3.2.7 2023-10-27 18:06:10 +08:00
Haojun Liao eb4449999f other: merge 3.0 2023-10-12 10:33:48 +08:00
sheyanjie faca8f2ea9 support geometry data type 2023-09-19 11:20:06 +08:00
Shuduo Sang 6bb1a86c86
chore: add build instruction to refine example (#22943)
* fix: use latest version of jdbc connector

* fix: remove locale and timezone to avoid confusing user

* fix: update readme.md

* fix: refine demo.c

* fix: specify utf-8 in jdbc example pom.xml

* fix: refine jdbc example doc

* chore: add build instructions to go example
2023-09-16 21:00:43 +08:00
Shuduo Sang fc283a5290
fix: refine jdbc example docs (#22821)
* fix: use latest version of jdbc connector

* fix: remove locale and timezone to avoid confusing user

* fix: update readme.md

* fix: refine demo.c

* fix: specify utf-8 in jdbc example pom.xml

* fix: refine jdbc example doc
2023-09-10 23:55:00 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
Haojun Liao b1aa86a290
Merge pull request #22605 from taosdata/feat/TD-18789
feat:support varbinary type
2023-08-30 11:29:26 +08:00
wangmm0220 de91793630 fix:compile error 2023-08-29 17:20:06 +08:00
wangmm0220 9435d78245 fix:rollback 2023-08-29 16:02:05 +08:00
wangmm0220 af89cb0af5 fix:memory error 2023-08-29 15:58:24 +08:00
wangmm0220 34c7832850 feat:support stmt/tmq json in varbinary type 2023-08-29 15:24:12 +08:00
Shuduo Sang f7b42ad41b
fix: specify utf-8 in jdbc example pom.xml (#22565)
* fix: use latest version of jdbc connector

* fix: remove locale and timezone to avoid confusing user

* fix: update readme.md

* fix: refine demo.c

* fix: specify utf-8 in jdbc example pom.xml
2023-08-25 09:22:29 +08:00
Shuduo Sang 7440cccd58
fix: refine example demo.c (#22473)
* fix: use latest version of jdbc connector

* fix: remove locale and timezone to avoid confusing user

* fix: update readme.md

* fix: refine demo.c
2023-08-18 00:19:27 +08:00
wangmm0220 beb84b2355 fix:tmq interface & remove snapshot code 2023-08-15 15:37:39 +08:00
wangmm0220 60191bef9e fix:tmq interface & remove snapshot code 2023-08-14 16:24:56 +08:00
Shuduo Sang 67bca400c4
fix: refine example (#22325)
* fix: use latest version of jdbc connector

* fix: remove locale and timezone to avoid confusing user

* fix: update readme.md
2023-08-04 13:57:34 +08:00
Shuduo Sang 8b7b9f8855
fix: use latest version of jdbc connector (#22148) 2023-07-23 00:34:07 +08:00
Shuduo Sang a6adf26afb fix: add error reason to connect 2023-07-10 16:58:14 +08:00
Shuduo Sang 8ed5afe031 fix: refine csharp example 2023-07-10 16:43:39 +08:00
dependabot[bot] cbb70dd52c
build(deps): bump guava in /examples/JDBC/consumer-demo (#21734)
Bumps [guava](https://github.com/google/guava) from 30.1.1-jre to 32.0.0-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

---
updated-dependencies:
- dependency-name: com.google.guava:guava
  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-06-15 09:12:46 +08:00
Shuduo Sang d26bd98874
fix: typos in jdbcdemo example (#21646) 2023-06-09 09:20:25 +08:00
huolibo 730db6d551 docs(driver): TDengine description 2023-06-08 16:43:43 +08:00
yihaoDeng 52d81476be change link opt 2023-06-07 07:33:35 +00:00
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