Minglei Jin
49a9c5abad
Merge branch '3.0' into feat/TS-4243-3.0
2024-04-10 16:24:24 +08:00
factosea
4686d82a2d
cast support
2024-04-10 11:48:50 +08:00
factosea
239844e3b0
feat/binary without length supported
2024-04-09 18:00:48 +08:00
dapan1121
8407eb3791
enh: outer join performance optimization
2024-04-09 09:48:38 +08:00
slzhou
595ae2c5b8
fix: irate on super table merge phase and translate
2024-03-26 17:05:40 +08:00
slzhou
5fe03fe3f4
feat: irate support pk
2024-03-26 09:18:45 +08:00
dapan1121
3f71b53101
fix: case issues
2024-03-26 08:42:17 +08:00
dapan1121
42b0d00575
enh:support join type
2024-03-25 15:19:16 +08:00
shenglian zhou
cee96e2048
feat: begin coding function
2024-03-19 13:57:12 +08:00
dapan1121
b26716f2e8
Merge remote-tracking branch 'origin/3.0' into feat/TD-27337
2024-02-18 22:15:43 -08:00
wangmm0220
a8e45440c0
fix:conflicts from 3.0
2024-02-18 18:02:14 +08:00
Haojun Liao
cb2ea4a721
fix(stream): take ver snapshot for all vgroups before launching stream with fill-history option opened.
2024-02-01 11:37:57 +08:00
wangmm0220
a9fcc67321
fix:conflicts from 3.0
2024-02-01 11:13:03 +08:00
dapan1121
dc309d67b8
Merge remote-tracking branch 'origin/3.0' into feat/TD-27337
2024-01-29 17:08:41 +08:00
Alex Duan
1f72313332
Merge pull request #24627 from taosdata/coverage/TD-28401-3.0
...
coverage: sclfunc.c with query_basic.py
2024-01-26 09:06:17 +08:00
factosea
2513531eee
fix: statecount function checkou arg full equal
2024-01-25 10:19:51 +08:00
Alex Duan
ddaa898ead
fix: build error
2024-01-25 10:16:29 +08:00
Alex Duan
27aa90d6b0
feat: sclfuns.c finished
2024-01-25 09:12:02 +08:00
wangmm0220
7246fedfef
Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/ly_multi_marks
2024-01-18 19:08:35 +08:00
dapan1121
fb20dd51de
Merge remote-tracking branch 'origin/3.0' into feat/TD-27337
2024-01-18 17:11:25 +08:00
facetosea
f010e18ff0
fix: LEASTSQUARES func result stack overflow
2024-01-17 18:28:00 +08:00
dapan1121
2fef37a5cc
Merge pull request #24315 from taosdata/fix/xsren/TD-28068/columnNodeRef2
...
fix: columanRefNode illegal type conversion
2024-01-16 10:08:34 +08:00
wangmm0220
e5932ab122
fix:compile error
2024-01-15 18:16:09 +08:00
wangmm0220
2ab54a1335
fix:conflicts from 3.0
2024-01-15 16:54:52 +08:00
54liuyao
52d8811bdc
code coverage
2024-01-12 13:49:32 +08:00
factosea
b6b2a41d83
fix: columnrefnode
2024-01-03 18:30:57 +08:00
wangmm0220
5367a430c6
fix:add function to the end
2023-12-28 16:07:19 +08:00
wangmm0220
eac86f72b3
fix:partical func parameters for middle interval[checkStreamSTable1.sim]
2023-12-22 18:30:22 +08:00
dapan1121
ee03cbc404
Merge remote-tracking branch 'origin/3.0' into feat/TD-27337
2023-12-06 08:38:30 +08:00
facetosea
419712494e
skip scan table
2023-11-29 11:22:13 +08:00
dapan1121
84cc80be1c
fix: add window_offset translate
2023-11-28 14:35:11 +08:00
wangjiaming0909
fc6c4fba90
feat: cache scan for select last(c), ts/c
2023-11-08 13:39:28 +08:00
Haojun Liao
acd20506f6
Merge pull request #23542 from taosdata/fix/TD-27041
...
adj builtin function
2023-11-07 13:43:23 +08:00
dapan1121
3d1afe7adf
Merge pull request #23547 from taosdata/fix/3.0/TD-27013
...
fix: cast error msg
2023-11-07 13:35:41 +08:00
liuyao
7c38344642
adj builtin function
2023-11-03 17:53:36 +08:00
wangjiaming0909
741f8b0083
fix: cast error msg
2023-11-03 16:31:28 +08:00
wangjiaming0909
b71a013b8d
fix: nano seconds database error
2023-11-02 09:36:46 +08:00
wangjiaming0909
70850697a4
feat: support to_timestamp/to_char fix comments
2023-10-27 09:54:16 +08:00
wangjiaming0909
f299a28109
feat: support to_timestamp/to_char
2023-10-23 19:36:03 +08:00
Haojun Liao
eb4449999f
other: merge 3.0
2023-10-12 10:33:48 +08:00
dapan1121
c8aee79e3f
fix: apercentile parameter validation and result error
2023-09-27 16:08:06 +08:00
wangjiaming0909
1e53e6cfeb
optimize count()/last() + partition by tbname/tag
2023-09-19 14:56:02 +08:00
dapan1121
615c619bba
Merge pull request #22782 from taosdata/fix/TS-3897
...
fix: fix diff not support unsigned type
2023-09-07 16:17:42 +08:00
Ganlin Zhao
a762437100
fix issue
2023-09-07 09:54:06 +08:00
Ganlin Zhao
60d159731a
Revert "fix: fix diff not support unsigned type"
...
This reverts commit 7ccf959cdc44be7c5eaa0218f84db7699c126bbb.
2023-09-07 09:53:52 +08:00
Ganlin Zhao
d74834f81e
fix: fix diff not support unsigned type
2023-09-06 14:21:30 +08:00
wangmm0220
a0fadb07ea
fix:support length function for varbinary
2023-09-04 17:15:03 +08:00
dapan1121
cc17848b78
fix: merge 3.0 to main
2023-09-01 13:24:47 +08:00
Ganlin Zhao
7396a7c09c
fix: fix where ts < now used in nested query report invalid timestamp
2023-08-24 17:11:05 +08:00
Ganlin Zhao
d9ef9c4584
fix: fix _wstart,_wennd not matching with interval for ns/us databases
2023-08-04 10:15:15 +08:00
Ganlin Zhao
728e42f723
fix: add forbid system table functions
2023-06-14 11:10:51 +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
Ganlin Zhao
a3ca23b688
forbid interp ignoring null value used for multiple cols
2023-05-19 16:43:39 +08:00
Ganlin Zhao
6879a784ae
reserve value node
2023-05-16 15:07:07 +08:00
Ganlin Zhao
ace27326b0
enable ignore_null value param in client
2023-05-16 14:13:40 +08:00
Ganlin Zhao
9581dcae7f
enh: add param for to_unixtimestamp to return timestamp type
2023-04-18 14:17:22 +08:00
Ganlin Zhao
d1544e8859
fix: fix illegal usage of _isfilled/_irowts
2023-04-13 14:05:04 +08:00
Ganlin Zhao
3078e2d487
feat(query): INTERP support boolean type
2023-04-10 18:35:35 +08:00
Xiaoyu Wang
c134432c45
merge main
2023-04-06 09:31:45 +08:00
Ganlin Zhao
4819b22a21
fix: fix tsim crash on windows due to invalid input to strftime
2023-04-04 13:40:53 +08:00
Ganlin Zhao
23ec9287c9
fix: fix tsim crash on windows due to invalid input to strftime
2023-04-04 10:33:41 +08:00
Xiaoyu Wang
16394862a6
enh: last_row is keep order function
2023-04-03 18:11:46 +08:00
Ganlin Zhao
6c64b760a0
fix: fix tsim crash on windows due to invalid input to strftime
2023-04-03 17:58:43 +08:00
dapan1121
a8da9f31e7
fix: join query error
2023-03-30 18:04:32 +08:00
Haojun Liao
1093c64586
Merge pull request #20649 from taosdata/fix/TD-23272
...
fix:add combine function for last row
2023-03-29 10:43:49 +08:00
Ganlin Zhao
2198ae2060
fix(query): spread/elapsed using sma result for computation
2023-03-28 10:49:49 +08:00
54liuyao
3a12e36b4b
fix:add combine function for last row
2023-03-27 14:13:17 +08:00
54liuyao
ffa59f69aa
fix:add combine function for groupKey
2023-03-23 15:20:45 +08:00
dapan1121
05c7bc170e
Merge pull request #20098 from taosdata/feat/TS-2671
...
feat(query): optimize percentile function performance
2023-02-23 10:24:06 +08:00
Ganlin Zhao
39d38c15f1
fix param check
2023-02-22 14:08:03 +08:00
Ganlin Zhao
61140d3143
fix parameter check
2023-02-22 11:09:23 +08:00
Ganlin Zhao
84765ff670
refactor code
2023-02-22 10:47:49 +08:00
Ganlin Zhao
7e01d092a2
optimize repeat scan
2023-02-22 09:25:18 +08:00
Ganlin Zhao
28693ce285
feat(query): allow percentile function to take multiple params
...
to enhance performance
2023-02-20 14:07:24 +08:00
Shengliang Guan
3016f35e9f
Merge branch '3.0' into merge/mainto3.0_0105
2023-01-05 16:08:23 +08:00
Ganlin Zhao
763f702fff
fix assert in builtims.c
2022-12-30 10:50:40 +08:00
Ganlin Zhao
5da2fe9bc5
feat(query): add _isfilled pseudocolumn to indicate data is origin
...
or filled.
2022-12-14 16:56:10 +08:00
Shengliang Guan
6d94afe48f
Revert "refact: adjust some assert cases"
2022-12-07 21:51:17 +08:00
Shengliang Guan
d5126d469a
refact: replcase ASSERT with tAssert
2022-12-07 18:42:48 +08:00
Shengliang Guan
f69a188f7e
refact: replcase ASSERT with tAssert
2022-12-07 18:37:40 +08:00
dapan1121
0ecb0d26f2
Merge pull request #18694 from taosdata/fix/TS-2144
...
enh(query): add timetruncate function ignore timezone option for 1d
2022-12-05 17:18:18 +08:00
Ganlin Zhao
e18da31a5d
enh(query): add timetruncate function ignore timezone option for 1d
2022-12-05 12:00:12 +08:00
Xiaoyu Wang
37b65c16c8
enh: ins_tables count optimize
2022-11-29 14:59:48 +08:00
Xiaoyu Wang
d00f65a8fe
Merge remote-tracking branch 'origin/3.0' into enh/3.0_planner_optimize
2022-11-18 15:05:19 +08:00
Ganlin Zhao
a115ff1299
fix(query): fix time precision convert overflow
...
TD-20456
2022-11-16 17:25:57 +08:00
Xiaoyu Wang
6a50e9e271
Merge remote-tracking branch 'origin/3.0' into enh/3.0_planner_optimize
2022-11-16 10:58:06 +08:00
dapan1121
49a3623f1a
Merge pull request #18112 from taosdata/fix/TD-19892
...
fix(query): report error if certain function query stable has duplicate timestamps
2022-11-15 17:24:08 +08:00
Xiaoyu Wang
40c7562470
enh: optimize statement for querying the number of sub tables of the super table
2022-11-15 16:38:51 +08:00
Xiaoyu Wang
901c9b8f77
fix: some problems of parser
2022-11-14 16:53:01 +08:00
Ganlin Zhao
2b53f7be84
fix(query): report error if certain function query stable has duplicate
...
timestamps
TD-19892
2022-11-11 16:43:45 +08:00
Ganlin Zhao
eec1b0bfb0
fix(query): report error if certain function query stable has duplicate
...
timestamps
TD-19892
2022-11-11 16:22:31 +08:00
Ganlin Zhao
1cba568604
fix(query): report error if certain function query stable has duplicate
...
timestamps
TD-19892
2022-11-11 15:22:00 +08:00
Ganlin Zhao
a0e13e04fe
fix(query): add mode with selectivity rows
2022-11-03 18:27:43 +08:00
chenhaoran
5fc0e2341e
test:supplement muti-branch for query fuction testcase
2022-10-28 16:35:13 +08:00
Hui Li
4ac9c3694f
Merge pull request #17669 from taosdata/fix/coverage_glzhao
...
fix(query): comment out unused functions for code coverage
2022-10-26 20:49:21 +08:00
Ganlin Zhao
547e7694a8
fix(query): comment out unsed functions for code coverage
2022-10-26 15:06:56 +08:00
Ganlin Zhao
c3362223d9
fix(query): comment out unsed functions for code coverage
2022-10-26 13:39:56 +08:00
dapan1121
3fa1f535f1
Merge pull request #17609 from taosdata/fix/interpStable
...
fix: remove interp stable limitation and add test case
2022-10-26 09:59:42 +08:00
Ganlin Zhao
3125f3ea26
remove unused code
2022-10-25 16:42:52 +08:00
Ganlin Zhao
7fa93222f4
remove interp unused code
2022-10-25 16:40:56 +08:00