Commit Graph

131 Commits

Author SHA1 Message Date
Haojun Liao 5de59a3547 enh(sys): add check for avx512vl 2023-11-27 10:32:47 +08:00
Haojun Liao de47ea6c81 other: merge 3.0. 2023-11-23 15:42:40 +08:00
Haojun Liao a1cae2c6cc refactor: fix syntax error. 2023-11-13 23:56:41 +08:00
Haojun Liao 65aef15be6 refactor: do some internal refactor. 2023-11-13 23:56:36 +08:00
Haojun Liao 9914e327d1 refactor: do some internal refactor. 2023-11-13 23:56:35 +08:00
Haojun Liao 801b211cd8 refactor:do some internal refactor. 2023-11-11 15:39:45 +08:00
Alex Duan 293840d707 fix: compatible for open and close TSZ 2023-09-23 14:34:23 +08:00
Alex Duan 6fa4bfb492 fix: cfgAddDouble set to fval is error 2023-09-23 11:22:22 +08:00
Alex Duan 20cded7d6e fix: build error 2023-09-19 12:57:18 +08:00
Alex Duan 4a4e778a6a fix: remove depends from util to common 2023-09-19 10:46:52 +08:00
lx1zhong 6da4088012 add TSZ and ADT-FSE algorithm 2023-09-15 14:30:23 +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
dapan1121 198be9a7a6 fix: double decompress issue and memory leak issue 2023-05-15 10:13:20 +08:00
dapan1121 3ca5559b37 fix: invalid read issue 2023-05-12 19:27:11 +08:00
dapan1121 ed34b401ee fix: optimize decompress double 2023-04-18 13:44:41 +08:00
Haojun Liao 466d5fe716 fix(query): fix error in simd. 2023-02-21 10:31:30 +08:00
Haojun Liao ec7549608c fix(query): fix error in simd. 2023-02-21 10:23:02 +08:00
Haojun Liao da2787ee56 fix(query): set correct shift bits. 2023-02-21 00:50:36 +08:00
Haojun Liao ab3fb17a74 fix(query): set correct shift bits. 2023-02-20 23:43:30 +08:00
Haojun Liao a70f8cea91 refactor: do some internal refactor. 2023-02-08 22:34:32 +08:00
Haojun Liao cc2fb66712 fix(query): disable AVX2 when cpu instructions do not support it. 2023-02-08 22:30:00 +08:00
Haojun Liao 642651c1bd refactor: do some internal refactor. 2023-01-09 14:50:24 +08:00
Haojun Liao c7560202f1 refactor: do some internal refactor. 2023-01-09 14:06:31 +08:00
Haojun Liao f90fa07ea9 refactor: add avx support zigzag decode. 2023-01-08 12:34:18 +08:00
Haojun Liao 972f9b6948 refactor: do some internal refactor. 2023-01-07 00:59:05 +08:00
Haojun Liao f408c795da refactor: do some internal refactor. 2023-01-06 18:41:22 +08:00
Haojun Liao db48c2350d refactor: do some internal refactor. 2023-01-06 17:44:36 +08:00
Haojun Liao e73129fda5 refactor: do some internal refactor. 2023-01-06 17:38:18 +08:00
Haojun Liao 7f29a4a62d refactor: do some internal refactor. 2023-01-06 17:10:52 +08:00
Haojun Liao 18738ecdd6 refactor: do some internal refactor. 2023-01-06 15:45:15 +08:00
Haojun Liao 9dd07cc1e1 other:merge main. 2023-01-06 12:54:26 +08:00
Haojun Liao cf4d60a76c enh(query): do some internal refactor. 2023-01-06 11:18:44 +08:00
Haojun Liao cbc4218253 enh(query): do some internal refactor. 2023-01-05 19:15:18 +08:00
Haojun Liao 5f17d81b18 enh(query): do some internal refactor. 2023-01-05 19:14:42 +08:00
Haojun Liao 4fd8954c9c enh(query): opt decompress perf. 2023-01-05 10:13:05 +08:00
Haojun Liao 5e4141a76f enh(query): opt decomp performance. 2023-01-04 23:08:30 +08:00
Haojun Liao 3373324668 enh(query): opt decomp performance. 2023-01-04 19:46:02 +08:00
Shengliang Guan 43bc021eb0
Merge pull request #19312 from taosdata/feature/3_liaohj
refactor: disable all asserts.
2023-01-03 11:15:37 +08:00
Haojun Liao dbc3dd97bb rerfactor: remove unused code. 2022-12-30 17:42:20 +08:00
Haojun Liao 79227057e4 enh(tsdb): opt decompress int perf 2022-12-30 14:43:26 +08:00
Alex Duan 59462d35fd new ASSERT add tdiest.c and tcompression.c 2022-12-23 21:17:10 +08:00
Alex Duan b607fe277a fix(util): remove no reference function 2022-10-25 16:46:11 +08:00
Alex Duan d54ed45822 fix(all): remove seterror, no use 2022-10-24 18:49:48 +08:00
Alex Duan 97e70e8f27 fix(all): coverity scan problem fixed 2022-10-24 18:41:39 +08:00
Alex Duan 39c800da80 fix(all): fixed coverity scan problems for second submiting 2022-10-22 15:41:37 +08:00
Hongze Cheng ce087d3dbc optimize more code 2022-09-29 14:54:58 +08:00
Hongze Cheng cf0aecd3dd more fix 2022-09-29 00:02:09 +08:00
Hongze Cheng 82a227b9c7 more fix 2022-09-28 18:48:35 +08:00
Hongze Cheng 0ca19fb42b fix more 2022-09-28 15:46:56 +08:00
Hongze Cheng 5be361ee08 more fix 2022-09-28 14:01:34 +08:00
Hongze Cheng df84baad12 fix another bug 2022-09-28 10:12:10 +08:00
Hongze Cheng 27b6290f6b fix compression bug 2022-09-28 09:56:28 +08:00
Hongze Cheng a4d16f1c00 more code 2022-09-27 17:36:02 +08:00
Hongze Cheng 3be4b1d4df finish stream compression 2022-09-27 16:16:02 +08:00
Hongze Cheng 24e899f88b more code 2022-09-27 15:40:06 +08:00
Hongze Cheng 4fdb37e887 more code 2022-09-26 17:56:47 +08:00
Hongze Cheng 787e166215 refact more code 2022-09-26 17:45:37 +08:00
Hongze Cheng efacafde33 refact more code 2022-09-26 10:47:24 +08:00
Hongze Cheng 64434678ca refact more code 2022-09-25 18:09:54 +08:00
Hongze Cheng 9f7771cde4 refact more code 2022-09-22 11:52:47 +08:00
Hongze Cheng ce9afbae19 more code 2022-09-21 14:02:52 +08:00
Hongze Cheng b4a43079fb more code 2022-09-21 11:03:08 +08:00
Hongze Cheng fb45b8d577 refact code 2022-09-20 13:39:32 +08:00
Hongze Cheng 215883ea64 refact code 2022-09-20 11:08:46 +08:00
Hongze Cheng 678f9da4ac refact compress code 2022-09-20 10:11:55 +08:00
Hongze Cheng e43a4df898 more code 2022-09-19 18:47:39 +08:00
Hongze Cheng c90123c0d7 more code 2022-09-19 18:19:41 +08:00
Hongze Cheng 747ce081b3 more code 2022-09-19 17:59:05 +08:00
Hongze Cheng e33c255ad1 more code 2022-09-19 15:57:58 +08:00
Hongze Cheng 61496324e7 more code 2022-09-19 14:39:21 +08:00
Hongze Cheng f2cd319df2 more code 2022-09-19 12:00:55 +08:00
Hongze Cheng 7a21781a55 refact code 2022-09-19 10:08:08 +08:00
Shengliang Guan b0263a4bea enh: increase startup time monitoring 2022-08-23 17:29:31 +08:00
Hongze Cheng 8cc0b6fc89 fix: bigint compress problem 2022-07-22 08:24:48 +00:00
afwerar 9dff7b93c6 test: fix sim test error 2022-06-21 20:04:55 +08:00
Cary Xu b3bb652708 data and bitmap compress/store/decompress separatedly 2022-04-03 18:02:30 +08:00
Shengliang Guan 3e49b78ab7 compression 2022-02-28 10:47:44 +08:00
Shengliang Guan 15b18f4ce9 log 2022-02-27 11:05:46 +08:00
Haojun Liao 819c7fc030 [td-10529] fix compiler error 2021-10-08 20:33:46 +08:00
Shengliang Guan 8ccd079f6e rename tulog.h ulog.h 2021-10-04 21:01:03 +08:00
Shengliang Guan c0a171b144 [TD-10430] adjust os module 2021-10-03 10:32:14 +08:00