Commit Graph

489 Commits

Author SHA1 Message Date
yihaoDeng c54e4aeaad add test case 2024-02-23 09:30:53 +00:00
Hongze Cheng 2d1c2ad0b2
Merge pull request #24810 from taosdata/opt/changeCoverityScan
Opt/change coverity scan
2024-02-23 08:52:34 +08:00
yihaoDeng d28a450882 add coveriry 2024-02-21 14:39:41 +08:00
yihaoDeng d0b26bf037 add coveriry 2024-02-21 14:07:46 +08:00
yihaoDeng 05c6c3815a fix duplicate uid 2024-02-20 12:45:21 +00:00
yihaoDeng af1a40a7ff fix duplicate uid 2024-02-20 12:09:30 +00:00
Alex Duan f6ecea3ff1 coverage: add indexFstRegex.c osSystem.c tuint.c fullopt.py shellArgument 2024-02-17 16:08:44 +08:00
Alex Duan 52bd49285e coverage: osMath.c indexTfile.c 2024-02-16 23:39:19 +08:00
factosea d25275713e ctest 2023-12-12 13:59:56 +08:00
facetosea 33897447cb ctest on linux exclude 2023-12-12 10:37:39 +08:00
factosea f01241f720 Merge branch 'fix/xsren/TD-22212/taosQueryParam3.0' into enh/xsren/TD-22212/taosQueryParam3.0 2023-12-06 17:39:25 +08:00
facetosea 45d7e9f02b fix: goto error 2023-11-22 10:48:08 +08:00
facetosea 759a5d4bbf fix ctest 2023-10-26 21:06:08 +08:00
wangmm0220 b3f945c4c5 fix:conflict 2023-08-16 19:35:05 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
Minglei Jin fac7e521e9 s3/evict: fetch atime from stat file 2023-08-07 15:59:37 +08:00
wade zhang 80130b2691
Merge pull request #21851 from luckeverda/fix/TD-24473
fix/TD-24542/TD-24484/TD-24473
2023-06-29 10:42:53 +08:00
Shungang Li 308ba7a02e fix: type geometry predicates support
support "=, <>, is null, is not null, in, not in"
2023-06-29 09:44:51 +08:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +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
Haojun Liao ab907e3344 fix(query): fix syntax error. 2023-05-24 21:53:40 +08:00
Haojun Liao fe09705855 fix: set the init function pointer. 2023-05-24 17:13:20 +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 c66c0c4dfd refactor: do some internal refactor. 2023-05-23 18:42:52 +08:00
Haojun Liao 3d084adf1f Merge remote-tracking branch 'origin/refact/fillhistory' into refact/fillhistory
# Conflicts:
#	source/dnode/vnode/inc/vnode.h
#	source/libs/executor/src/executil.c
#	source/libs/index/CMakeLists.txt
#	source/libs/index/src/indexFilter.c
2023-05-23 18:32:47 +08:00
Haojun Liao e67b532d8a refactor: refactor the module dependency. 2023-05-23 18:29:23 +08:00
yihaoDeng c15b1e3520 opt compile 2023-05-23 11:46:02 +08:00
Haojun Liao 17a5691afb refactor: remove assert. 2023-04-27 15:37:33 +08:00
yihaoDeng 2699a01444 fix filter err 2023-04-23 08:13:27 +00:00
yihaoDeng 03b661061a fix filter err 2023-04-23 08:12:36 +00:00
yihaoDeng 4291cfda21 fix filter err 2023-04-23 07:18:23 +00:00
yihaoDeng 3b89aa2085 fix filter err 2023-04-23 02:10:45 +00:00
yihaoDeng 5c9450856e fix filter err 2023-04-23 00:53:55 +00:00
Shengliang Guan e783c21629
Merge pull request #20519 from taosdata/fix/coveriyScanYihao
fix coverity scan problem
2023-04-04 09:22:02 +08:00
yihaoDeng 192570ce77 fix tag filter 2023-03-20 04:14:57 +00:00
yihaoDeng afaa77cc3e fix tag filter 2023-03-18 10:01:45 +00:00
yihaoDeng f24e06f36b fix tag filter 2023-03-18 08:58:26 +00:00
yihaoDeng 497ba9992d fix coverity scan problem 2023-03-17 02:26:18 +00:00
Yihao Deng 22b1bc1049
Merge branch '3.0' into fix/coverity_yihao 2023-02-24 21:22:58 +08:00
Haojun Liao 22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
yihaoDeng 2013ba0d8f fix: fix asan problem 2023-02-23 17:54:51 +08:00
yihaoDeng 51755e9783 fix: fix drop error 2023-02-18 16:44:29 +08:00
yihaoDeng 1acb4dd676 opt filter 2023-02-18 09:38:54 +08:00
yihaoDeng 0f803fca10 fix: fix filter error result 2023-02-13 11:40:40 +08:00
yihaoDeng 3e738363aa add/delete tag index 2023-01-11 13:36:07 +08:00
yihaoDeng 329e257ac4 remove assert 2022-12-29 18:47:32 +08:00
yihaoDeng bc693f374c opt index write 2022-12-23 22:42:32 +08:00
yihaoDeng 71bbc4fdd0 update charset conv 2022-12-23 22:21:28 +08:00
dapan1121 978d45ffc1 enh: optimize converting timestamp at client side 2022-12-15 16:56:35 +08:00