Commit Graph

193 Commits

Author SHA1 Message Date
kailixu 433179af0d fix: unify tag value parsing syntax 2024-03-10 22:14:57 +08:00
kailixu 2c4a4a0d2d Merge branch '3.0' into fix/TS-4421-3.0 2024-02-28 09:49:43 +08:00
Hongze Cheng 4b71031014 more code 2024-02-21 14:29:10 +08:00
kailixu 6098538162 feat: support uniq grant 2024-02-04 18:00:02 +08:00
kailixu d281bc70b0 feat: remove hb of grantInfo 2024-02-04 16:46:24 +08:00
kailixu 3ebc26e1fb feat: support uniq grant 2024-02-04 16:33:43 +08:00
kailixu a9316c3710 feat: support uniq grant 2024-02-04 12:28:00 +08:00
kailixu f53d0bce5d feat: support uniq grant 2024-02-04 00:24:42 +08:00
kailixu adee720128 feat: support uniq grant 2024-02-01 17:48:29 +08:00
wangmm0220 35f154da37 fix:[TS-4479] support long varbinary in format like \x3423 2024-01-29 13:55:46 +08:00
wangmm0220 5f1b48a8da fix:[TS-4479] support long varbinary in format of \x3423 2024-01-29 10:50:10 +08:00
kailixu 3ccc3d80e0 chore: check tag cond for insert 2024-01-04 23:41:58 +08:00
dapan1121 4d993e8f9a
Merge pull request #23912 from taosdata/enh/3.0/TD-27276
enh : accept float data as int field input
2023-12-07 19:14:59 +08:00
Bob Liu d2b2dee256 opt & add test case 2023-12-05 22:00:33 +08:00
kailixu 08be3d790c fix: ignore NULL tag 2023-12-04 20:08:46 +08:00
dapan1121 d10bbc6252
Merge pull request #23877 from taosdata/FIX/TD-27403
Fix TD-27403: insert error about use today + now as timestamp value
2023-12-04 10:55:26 +08:00
Bob Liu 7e8f3579de accept float data as int data input 2023-12-01 18:33:01 +08:00
fullhonest 72d6614b7b Fix TD-27403: insert error about use today + now as timestamp value 2023-11-30 18:39:01 +08:00
Bob Liu 35ae8a4c0d adjust parseOneStbRow 2023-11-30 00:25:05 +08:00
Bob Liu 3069069e0f adjust parseOneStbRow; add case for stable 2023-11-29 22:47:31 +08:00
Bob Liu 9d3ce107f2 support stable insert child batch by file 2023-11-29 15:32:40 +08:00
Bob Liu 28b73b415c fit insert childtable by file 2023-11-29 02:44:55 +08:00
Bob Liu 5c5efa34eb fix crash when insert big csv 2023-11-29 01:53:13 +08:00
slzhou d574b97015 fix: tbname can not contain dot 2023-11-07 11:03:42 +08:00
slzhou 5495e1ceac fix: use the right target name 2023-11-06 12:33:09 +08:00
dapan1121 0c4040b48e
Merge pull request #23541 from taosdata/fix/TS-4219.3.0
fix: insert syntax error caused coredump
2023-11-06 08:48:46 +08:00
dapan1121 6c4f94661b fix: insert syntax error caused core 2023-11-03 17:43:08 +08:00
slzhou e1ea15c8f2 enhance: improve performance 2023-11-03 16:13:35 +08:00
slzhou 75d542c758 fix: performance improvement 2023-11-03 14:03:25 +08:00
slzhou 52608cf84d fix: performace improvement 2023-11-03 10:38:43 +08:00
slzhou 4a2c52783b Merge branch '3.0' of github.com:taosdata/TDengine into szhou/insert-stb-tbname 2023-11-01 14:10:02 +08:00
slzhou bd64b9102d fix: fix address sanitizer error 2023-11-01 13:25:54 +08:00
slzhou efb0c61cac fix: fix compilation error 2023-11-01 08:43:29 +08:00
shenglian zhou 42a7553fe0 enhance: refactor getStbRowValues 2023-11-01 08:35:38 +08:00
shenglian zhou 7636f09bfb enhance: refactor getStbRowValues 2023-11-01 08:32:31 +08:00
slzhou 041ef1ef83 enhance: colvals of table data cxt is not used in insert stb syntax 2023-10-31 17:05:37 +08:00
slzhou c8767f7614 enhance: tbname token optimization 2023-10-31 14:44:06 +08:00
slzhou 1686c70a60 fix: not use ctb meta from hash of stmt node 2023-10-31 13:14:21 +08:00
shenglian zhou 45ae3727a7 fix: performace improvement 2023-10-31 10:48:10 +08:00
slzhou e9a7f6e322 fix: invalid schema error 2023-10-30 15:54:10 +08:00
slzhou 779c37b425 enhance: change to invalid operation for stmt error 2023-10-26 14:23:21 +08:00
slzhou 5ca39f961c fix: add error test case and fix address sanitizer 2023-10-25 16:30:13 +08:00
slzhou 29db21a3ad fix: reinit ctb meta and col vals before each stb row 2023-10-25 11:22:15 +08:00
slzhou c17300557d fix: memory sanitizer error of simple insert stb 2023-10-25 10:56:28 +08:00
slzhou f0a44b31fc fix: insert into super table syntax is not supported for stmt 2023-10-25 09:56:21 +08:00
shenglian zhou 3de5b841a5 fix: large file by batches 2023-10-25 09:35:37 +08:00
shenglian zhou c9d1553633 enhance: refactor stb rows data context 2023-10-25 09:06:45 +08:00
shenglian zhou a28b3a6e3f fix: refactor 2023-10-25 08:50:08 +08:00
shenglian zhou 0c33a3e60e fix: child table meta optimization 2023-10-25 08:27:02 +08:00
shenglian zhou 27302f995b fix: add memory free 2023-10-24 16:23:03 +08:00
shenglian zhou ae1bac251a enhance: finished skeleton 2023-10-24 16:08:08 +08:00
shenglian zhou 65cfc13703 fix: memory sanitizer error 2023-10-23 19:40:27 +08:00
shenglian zhou e713b7c22f enhance: insert stb skeleton development 2023-10-23 16:27:00 +08:00
shenglian zhou 5156c0d00c enhance: get tbname from one row for stb syntax 2023-10-22 15:14:50 +08:00
shenglian zhou 6488672dd6 enhance: parse target column 2023-10-22 11:21:36 +08:00
shenglian zhou 438a775c78 fix: parse insert stb columns when meta is ready or ready after get meta 2023-10-21 14:02:03 +08:00
slzhou 3fe5c447e7 enhance: begin parse cols 2023-10-20 17:16:45 +08:00
slzhou ce6be3d3e7 fix: refactor checkAuth for target table 2023-10-20 14:51:44 +08:00
dapan1121 969b002936 enh: support view privilege 2023-10-20 08:41:49 +08:00
slzhou 332268fd4b set super table name for stb syntax and rename setRefreshMate to setRefreshMeta 2023-10-19 15:55:24 +08:00
slzhou cb2311fde6 fix minior error 2023-10-19 13:28:48 +08:00
slzhou 334feb199a call processTableSchemaFromMetaData when success 2023-10-19 13:22:28 +08:00
shenglian zhou 8532227a36 fix: first schema clause top - target is supertable 2023-10-19 11:30:44 +08:00
dapan1121 afe963a9d1 enh: support view privilege 2023-10-19 08:31:31 +08:00
wangmm0220 9cd8df12c2 fix:memory leak 2023-08-25 16:32:01 +08:00
wangmm0220 26e025d78d feat:[TD-18789]support varbinary type 2023-08-25 15:43:45 +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
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
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +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 5bedf6b19a enh: support config batch rows number when import data from csv file 2023-05-23 19:21:52 +08:00
Xiaoyu Wang e584bb3ea1 feat: subtable level privilege 2023-04-25 17:39:28 +08:00
Xiaoyu Wang 8b8ac0cd77 merge main 2023-04-12 10:43:28 +08:00
Xiaoyu Wang 4c04b155d5 merge main 2023-04-11 15:56:28 +08:00
Xiaoyu Wang 42a5a87e96 fix: table level privilege 2023-04-11 15:08:42 +08:00
Xiaoyu Wang 0f2c753103 feat: table level privilege 2023-04-07 16:39:40 +08:00
dapan1121 a61279ed71 Merge branch 'feat/table_level_privilege' of github.com:taosdata/TDengine into feat/table_level_privilege 2023-04-06 10:02:26 +08:00
dapan1121 d768f49dd7 feat: table level user auth 2023-04-06 10:01:27 +08:00
Xiaoyu Wang 6825b196ef feat: table level write privilege check 2023-04-04 17:19:18 +08:00
Xiaoyu Wang ca2e566319 enh: improve error reporting information 2023-03-23 17:56:56 +08:00
Xiaoyu Wang e15e40abdf enh: improve error reporting information 2023-03-23 14:15:49 +08:00
Haojun Liao 22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
Xiaoyu Wang 09925437e3 merge main 2023-02-08 09:51:52 +08:00
Xiaoyu Wang 2b4adceb93 fix: insert syntax error 2023-02-06 11:07:51 +08:00
Xiaoyu Wang 115160bbd0 fix: insert syntax error 2023-02-05 10:11:26 +08:00
Xiaoyu Wang 5d499e52f9 merge main 2023-02-03 17:13:11 +08:00
Xiaoyu Wang f6df973d4d fix: no cache auto create table error 2023-02-01 10:15:42 +08:00
Xiaoyu Wang 68ac5e5289 enh: clear assert and fix coverity scan 2023-01-04 16:46:02 +08:00
Xiaoyu Wang b686e1fd4d enh: delete useless code 2022-12-28 10:49:38 +08:00
Xiaoyu Wang 0c269c317b merge 3.0 2022-12-23 17:50:05 +08:00
Shengliang Guan 86ff8f381f
Merge pull request #19042 from taosdata/enh/3.0_planner_optimize
enh: improve unit tests
2022-12-20 21:53:25 +08:00
Xiaoyu Wang ad7f9b274b enh: improve unit tests 2022-12-20 16:53:08 +08:00
Xiaoyu Wang f6d953e62d fix: disable insert csv statements on cloud services 2022-12-19 16:40:40 +08:00
Haojun Liao 709c7d426c fix(query): fix error. 2022-12-19 11:55:53 +08:00
Shengliang Guan 6e64951c3f
Merge pull request #18995 from taosdata/fix/main_bugfix_wxy
fix: user auth error
2022-12-19 11:53:15 +08:00
Haojun Liao fdade6d6a3
Merge branch '3.0' into refact/submit_req 2022-12-19 11:24:00 +08:00
Xiaoyu Wang 6868e57351 fix: user auth error 2022-12-19 10:25:14 +08:00
dapan1121 49bcb15fab enh: ignore head line in cvs file 2022-12-14 16:34:56 +08:00
Haojun Liao 48f7fc5c3d
Merge branch '3.0' into refact/submit_req 2022-12-12 18:11:17 +08:00