Commit Graph

549 Commits

Author SHA1 Message Date
yihaoDeng 02d46c0550 fix return code 2024-07-29 21:36:10 +08:00
Hongze Cheng 805a1387b7
Merge pull request #26746 from taosdata/fix/refactErrorCodeIdx
Fix/refactErrorCodeIdx
2024-07-27 17:07:39 +08:00
Hongze Cheng eaa3634764 enh: refactor error code 2024-07-25 08:51:19 +08:00
Yihao Deng dc08cc86e4 refactor index 2024-07-23 09:36:55 +00:00
Yihao Deng 966b017986 refactor index 2024-07-23 09:08:17 +00:00
Yihao Deng ce5f9fa9f3 refactor index 2024-07-23 06:59:09 +00:00
Yihao Deng a5441cdcde Add index filtering based on column value type 2024-06-26 08:49:38 +00:00
Yihao Deng 58b3dd7b99 Add index filtering based on column value type 2024-06-26 08:45:14 +00:00
Yihao Deng 512671df85 Add index filtering based on column value type 2024-06-26 02:56:49 +00:00
Yihao Deng 03f1250b93 limit index bg thread 2024-04-18 02:57:53 +00:00
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
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
yihaoDeng df661958fc fix case 2022-11-30 20:42:03 +08:00
Haojun Liao 6e81e8cc73 refactor: do some internal refactor. 2022-11-28 12:32:40 +08:00
yihaoDeng d320a4dafc fix invalid packet 2022-11-24 21:16:08 +08:00
yihaoDeng 5e5cbea183 fix mem leak 2022-11-24 18:18:30 +08:00
Haojun Liao 8bf01cdecb fix(query): fix error in unit test. 2022-11-05 00:02:25 +08:00
yihaoDeng fd3ece836a fix invalid copy 2022-11-02 21:05:53 +08:00
yihaoDeng 4a01bc53c7 rm log 2022-10-28 18:29:59 +08:00
Shengliang Guan e9e0165a62
Merge pull request #17576 from taosdata/fix/fixConveriyDefeats
fix: fix coverity scan defeats
2022-10-23 14:37:56 +08:00
Shengliang Guan d22ab18d53
Merge pull request #17575 from taosdata/fix/rmRedundance
fix: rm redundance
2022-10-23 14:37:46 +08:00
yihaoDeng 17ee66cd2c fix coverity scan defeats 2022-10-23 12:25:52 +08:00
yihaoDeng 44e27f2906 avoid duplication of name 2022-10-23 11:22:33 +08:00
Cary Xu 951d110b3b fix: coverity scan for trow 2022-10-20 09:31:17 +08:00
yihaoDeng b5f7623219 fix invalid packet 2022-10-18 10:53:29 +08:00
yihaoDeng 78df93e0ca fix invalid packet 2022-10-17 22:17:47 +08:00
yihaoDeng c9aadfadee fix coverity scan problem 2022-10-17 16:29:50 +08:00
Hongze Cheng 63d9b85631 more code format 2022-10-13 13:59:18 +08:00
yihaoDeng 03f4412916 opt log time 2022-10-09 16:53:44 +08:00
yihaoDeng 738fddb814 fix coverity scan problem 2022-09-30 17:49:08 +08:00
yihaoDeng 3a9dee68cb opt tbname in 2022-09-30 11:30:07 +08:00
yihaoDeng 4977e2e676 opt tbname in 2022-09-29 18:35:12 +08:00
yihaoDeng 636004199b fix(idx): fix index read crash 2022-09-27 21:32:18 +08:00
yihaoDeng 6e561a6c78 fix: fix mem leak 2022-09-14 14:46:14 +08:00
yihaoDeng fb3c849141 fix: fix compile error 2022-09-11 23:01:37 +08:00
yihaoDeng ecfaf229e3 fix: add bench 2022-09-09 13:55:16 +08:00
yihaoDeng f6eda114bd fix(rpc): handle write failure 2022-09-09 11:32:13 +08:00
yihaoDeng 349dd69f94 fix compile error 2022-09-08 22:50:50 +08:00
yihaoDeng ee7a18db29 fix: add bench 2022-09-08 20:25:56 +08:00
yihaoDeng 3acd4d3afc refactor code 2022-09-07 19:41:51 +08:00
yihaoDeng f0c1950b63 refactor code 2022-09-07 19:39:44 +08:00
yihaoDeng 68a1c12dae add compile opt 2022-09-06 14:58:19 +08:00
yihaoDeng 9dcfba1970 refactor index code 2022-09-01 20:34:36 +08:00
yihaoDeng 47ff0e34b0 refactor idx code 2022-09-01 20:16:02 +08:00
Shengliang Guan 85f5d4d5e5 Merge remote-tracking branch 'origin/3.0' into fix/dnode 2022-08-31 18:08:17 +08:00
Shengliang Guan 4401080328 enh: make cmake .. -DCMAKE_BUILD_TYPE=Release work 2022-08-31 18:06:17 +08:00
yihaoDeng cac4cb12e6 remove assert 2022-08-31 15:36:53 +08:00
yihaoDeng f8ecbdc805 add err msg 2022-08-24 20:21:18 +08:00
dapan1121 d5072a8f32 fix: fix sched handler memory leak issue 2022-08-12 11:36:49 +08:00
dapan1121 9cd7c54e25 fix: fix task sched crash issue 2022-08-12 10:41:02 +08:00
yihaoDeng 399d240df5 refactor index 2022-08-10 15:41:12 +08:00