Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge 3.0 to feat/TD-22970 #22394

Merged
merged 202 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
4ffe3f7
test: rollback taosadapter for taos-tools ci test
sangshuduo Nov 6, 2022
932e7b2
Merge branch 'main' of https://github.com/taosdata/TDengine into main
tomchon Jul 14, 2023
d028a53
Merge branch 'main' of https://github.com/taosdata/TDengine into main
tomchon Jul 18, 2023
5f6bb78
Merge branch 'main' of https://github.com/taosdata/TDengine into main
tomchon Jul 28, 2023
599981c
Merge branch 'main' of https://github.com/taosdata/TDengine into main
tomchon Jul 31, 2023
29ced3d
test: merge with main
sangshuduo Jul 31, 2023
a350794
test: add test_R.sh
sangshuduo Jul 31, 2023
f2728a6
test: wget jdbc dist.jar
sangshuduo Jul 31, 2023
0666baa
fix: wget check if file exists
sangshuduo Aug 1, 2023
8728445
test: add readme.txt
sangshuduo Aug 1, 2023
2caaae3
add keep alive parameter
yihaoDeng Aug 1, 2023
fa36001
add CI test case for ts-3479 by charles
Aug 1, 2023
460cdc0
Merge pull request #22279 from taosdata/fix/3_liaohj
hjxilinx Aug 1, 2023
6b09566
Merge pull request #22275 from taosdata/enh/addKeepAliveParam
hjxilinx Aug 2, 2023
cff8555
Merge branch '3.0' into 3.0_main
stephenkgu Aug 2, 2023
b07df46
Merge pull request #22265 from taosdata/test/sangshuduo/ci-test
gccgdb1234 Aug 2, 2023
cbca55b
docs: add r language to connector (#22286)
sangshuduo Aug 2, 2023
12ac393
Merge pull request #22287 from taosdata/fix/3_liaohj
gccgdb1234 Aug 2, 2023
f90f0b7
disable infinite count loop
hzcheng Aug 2, 2023
e0cb021
Merge pull request #22292 from taosdata/fix--infinit-count-loop
gccgdb1234 Aug 2, 2023
13c713d
Merge pull request #22290 from taosdata/3.0_main
gccgdb1234 Aug 2, 2023
fb4ed26
test: make connect_native.r a bit perplexing (#22291)
sangshuduo Aug 2, 2023
d852960
Merge branch 'main' of https://github.com/taosdata/TDengine into main
tomchon Aug 2, 2023
673c275
release 3.1.0.0
xiaopingcs Aug 2, 2023
c89ea9d
Merge pull request #22294 from taosdata/docs/3.1.0.0_main
gccgdb1234 Aug 3, 2023
8bc62f5
doc: remove 3.1.0.0
gccgdb1234 Aug 3, 2023
c1fa979
Merge pull request #22295 from taosdata/docs/wade-20230803
gccgdb1234 Aug 3, 2023
3464979
set dummy delete data request
54liuyao Aug 2, 2023
48234f2
release 3.1.0.0
xiaopingcs Aug 3, 2023
0b0c603
Merge pull request #22297 from taosdata/docs/main_3100
gccgdb1234 Aug 3, 2023
74c69bb
reset state window end key
54liuyao Aug 3, 2023
1594005
docs: update readme for build contrib on (#22299)
sangshuduo Aug 3, 2023
11ec00a
Merge pull request #22296 from taosdata/fix/TD-25532
gccgdb1234 Aug 3, 2023
211af11
Merge pull request #22303 from taosdata/fix/TD-25538
gccgdb1234 Aug 3, 2023
db1bdd1
docs: optimization docker deploy
liuyuan199303 Aug 3, 2023
f53c6c1
docs: optimization docker deploy
liuyuan199303 Aug 3, 2023
68a4540
Update 01-docker.md
wingwing2005 Aug 3, 2023
ad3ae76
Update 02-docker.md
wingwing2005 Aug 3, 2023
5021d05
Update index.md
wingwing2005 Aug 3, 2023
fd421b7
Merge pull request #22307 from taosdata/docs/yuanliu/deploy-k8s-TD-25202
wingwing2005 Aug 3, 2023
a00f53f
docs: fix docker link
liuyuan199303 Aug 3, 2023
b646a1f
Merge branch 'docs/yuanliu/deploy-k8s-TD-25202' of https://github.com…
liuyuan199303 Aug 3, 2023
ab9155c
Merge pull request #22308 from taosdata/docs/yuanliu/deploy-k8s-TD-25202
wingwing2005 Aug 3, 2023
01fa064
platform supported by community
kailixu Aug 3, 2023
a531359
docs: fix note style
liuyuan199303 Aug 3, 2023
c38fb68
Merge pull request #22310 from taosdata/docs/yuanliu/deploy-k8s-TD-25202
wingwing2005 Aug 3, 2023
4cf7515
docs: geometry supplemental docs (#22298)
sangshuduo Aug 3, 2023
556d736
docs: platform supported by community edition
kailixu Aug 3, 2023
23b1408
docs: update the grammar
kailixu Aug 3, 2023
3a336bb
Merge pull request #22309 from taosdata/kailixu-patch-1
gccgdb1234 Aug 3, 2023
1cb1451
fix: set nextIndex when get neighbouring index
shenglian-zhou Aug 3, 2023
f7dc949
add stream verion
Aug 3, 2023
658c64f
fix: make statekey of state window operator not target node
shenglian-zhou Aug 3, 2023
7676aff
fix: stream use column node
shenglian-zhou Aug 3, 2023
2deeec9
fix: explain with state window
shenglian-zhou Aug 3, 2023
cb9c6c1
fix: compilation error
shenglian-zhou Aug 3, 2023
97b15ed
fix: delete SLDataItem if stt level files num is smaller
shenglian-zhou Jul 27, 2023
5322e38
fix: add init add check it
shenglian-zhou Jul 27, 2023
b85c1ae
fix: remove the core
shenglian-zhou Jul 27, 2023
fef091b
fix: keep the stt iterator valid
shenglian-zhou Aug 2, 2023
4e7f533
Merge pull request #22312 from taosdata/szhou/fix-nenc
gccgdb1234 Aug 3, 2023
b13fdd4
Merge pull request #22314 from taosdata/szhou/fix-ts3769-main
gccgdb1234 Aug 4, 2023
abe15cc
Merge pull request #22315 from taosdata/szhou/fix-td25385-main
gccgdb1234 Aug 4, 2023
9773bb2
Update 06-select.md
shenglian-zhou Aug 4, 2023
f3133f4
fix: modify english version
shenglian-zhou Aug 4, 2023
d9ef9c4
fix: fix _wstart,_wennd not matching with interval for ns/us databases
glzhao89 Aug 4, 2023
c81382d
Merge pull request #22318 from taosdata/shenglian-zhou-patch-1
plum-lihui Aug 4, 2023
9520569
add test cases
glzhao89 Aug 4, 2023
666a9a1
add test cases
glzhao89 Aug 4, 2023
9cb481d
use stream task
54liuyao Aug 4, 2023
dbc48f5
remove extra character
xiaopingcs Aug 4, 2023
4215026
Merge pull request #22326 from taosdata/packaging/update_packaging_sc…
gccgdb1234 Aug 4, 2023
434f410
Merge pull request #22321 from taosdata/fix/ly_session_test
gccgdb1234 Aug 4, 2023
973bb07
enhance: subquery can use expr primary key +/- value as primary key
shenglian-zhou Jul 27, 2023
6dc93a8
add stream ver
Aug 4, 2023
67bca40
fix: refine example (#22325)
sangshuduo Aug 4, 2023
81908be
add stream ver
Aug 4, 2023
56ed422
add stream ver
Aug 4, 2023
d3a9429
fix: add test case
shenglian-zhou Aug 4, 2023
b20b114
comment out splitVgroup.py
shenglian-zhou Aug 4, 2023
ebc3b1b
Merge pull request #22330 from taosdata/szhou/comment-out-splitvgroup…
gccgdb1234 Aug 4, 2023
fba43e1
feature: optimize interval with limit
wangjiaming0909 Aug 3, 2023
f7a2e0c
fix: ins_indexes vgroup_id using null value instead of -1 for invalid
glzhao89 Aug 4, 2023
a4da6e9
fix mem leak
Aug 4, 2023
9f3af66
fix: fix tsort crash caused by not enough disk space
glzhao89 Aug 4, 2023
10da0dd
fix mem leak
Aug 4, 2023
40b87a2
Merge pull request #22320 from taosdata/fix/TS-3311
gccgdb1234 Aug 4, 2023
944c1f6
delete atomic_exchange_64
54liuyao Aug 3, 2023
d508fad
open split vgroup case
hzcheng Aug 4, 2023
84bf3e5
fix test cases
glzhao89 Aug 4, 2023
5154d0e
fix: alter ttlChangeOnWrite note info
LiShunGang Aug 4, 2023
f19826f
Merge pull request #22313 from taosdata/fix/addStreamVer
plum-lihui Aug 4, 2023
314c749
docs: supplement r language connnector note (#22340)
sangshuduo Aug 5, 2023
4b137f1
fix: mktime on windows platform
jiacy-jcy Aug 6, 2023
76288f3
Merge pull request #22311 from taosdata/fix/TD-25543
hjxilinx Aug 7, 2023
6c9e72d
Merge branch 'main' of https://github.com/taosdata/TDengine into main
tomchon Aug 7, 2023
0e4f194
fix: resolve Vgroup refcount leak in drop topic
bgzhao66 Aug 7, 2023
1d4abc3
update packaging script
xiaopingcs Aug 7, 2023
90e2d5e
Merge pull request #22344 from taosdata/packaging/update_packaging_sc…
plum-lihui Aug 7, 2023
773a945
enhance: subquery can use expr primary key +/- value as primary key
shenglian-zhou Jul 27, 2023
3e7187b
fix: add test case
shenglian-zhou Aug 4, 2023
6cccc15
enhance: enhance test case
shenglian-zhou Aug 7, 2023
df607c2
Merge branch 'szhou/ts-3706' of github.com:taosdata/TDengine into szh…
shenglian-zhou Aug 7, 2023
661f2ac
fix: memory leak
hzcheng Aug 7, 2023
a545d45
fix: snapshot invalid read
hzcheng Aug 7, 2023
6ac7ccf
Merge pull request #22345 from taosdata/fix/main-TD-25606
plum-lihui Aug 7, 2023
6fd2ae1
fix: taosMktime on windows platform
jiacy-jcy Aug 7, 2023
03f3b25
chore: merge conflicts
jiacy-jcy Aug 7, 2023
b34451a
Merge branch '3.0' into fix/TD-25426-3.0
kailixu Aug 7, 2023
59100a7
enh: code optimize for mktime
kailixu Aug 7, 2023
a0c5d13
test:repire test case for windows
tomchon Aug 7, 2023
443c6ef
Merge pull request #22333 from taosdata/fix/TD-25546
dapan1121 Aug 7, 2023
11f6f20
Merge pull request #22331 from taosdata/fix/TD-25515
dapan1121 Aug 7, 2023
2da6739
fix(stream): commit the update to make sure the new state of tasks wi…
hjxilinx Aug 7, 2023
fb1e017
Merge remote-tracking branch 'origin/fix/liaohj' into fix/liaohj
hjxilinx Aug 7, 2023
b598c26
fix: use mktime after 19700101 on windows
kailixu Aug 7, 2023
85756e4
Merge pull request #22353 from taosdata/fix/liaohj
hjxilinx Aug 7, 2023
05e356c
Merge pull request #22346 from taosdata/fix/TD-25612
plum-lihui Aug 8, 2023
9f83719
docs: add upgrade notes to releases page (#22354)
danielclow Aug 8, 2023
51e0b90
refactor: do some internal refactor.
hjxilinx Aug 8, 2023
82ab818
refactor: do some internal refactor.
hjxilinx Aug 8, 2023
143f39b
fix(stream): set the correct end key of delete block.
hjxilinx Jul 31, 2023
ca2183a
refactor: do some internal refactor.
hjxilinx Jul 31, 2023
d43cb3f
fix(stream): kill task when pause the stream execution.
hjxilinx Jul 31, 2023
3bcc7ed
fix(stream): transfer the state for agg tasks.
hjxilinx Jul 31, 2023
1e680d4
fix(stream): ignore the sink task transfer state.
hjxilinx Jul 31, 2023
0e3fd52
fix(stream): dump results to sink node before paused.
hjxilinx Jul 31, 2023
ac00e1d
fix(stream): fetch all data before paused and dump to sink node.
hjxilinx Aug 1, 2023
e89d3c1
fix(stream): remove invalid check.
hjxilinx Aug 1, 2023
d6d63ec
fix(stream): add more check.
hjxilinx Aug 1, 2023
327e13c
fix(stream): fix the syntax error.
hjxilinx Aug 8, 2023
db8ce3d
other: merge main.
hjxilinx Aug 8, 2023
68e0fb9
Merge pull request #22165 from taosdata/feat/3.0/TD-25271
dapan1121 Aug 8, 2023
4f03ae2
Merge pull request #22335 from taosdata/temp/open_case
plum-lihui Aug 8, 2023
ff36f5f
fix: reset rowsize since it is set during blockDataAppendColInfo
shenglian-zhou Aug 8, 2023
9b4bdd8
enhance: subquery can use expr primary key +/- value as primary key
shenglian-zhou Jul 27, 2023
d43db6e
fix: add test case
shenglian-zhou Aug 4, 2023
67d4647
enhance: enhance test case
shenglian-zhou Aug 7, 2023
be1710b
fix: fix error during merge
shenglian-zhou Aug 8, 2023
dff1f49
Merge branch '3.0' of github.com:taosdata/TDengine into szhou/ts-3706
shenglian-zhou Aug 8, 2023
c8f1061
fix: update assert issue
hzcheng Aug 8, 2023
17c6143
fix(stream): check more status when handling the state transfer.
hjxilinx Aug 8, 2023
889a4f3
Merge pull request #22364 from taosdata/fix/TS-3798
plum-lihui Aug 8, 2023
db92546
fix(stream): remove invalid filter.
hjxilinx Aug 8, 2023
0ce702f
docs: fix connection param in taosws in python connector
sunpe Aug 8, 2023
90008bf
docs: fix connection param in taosws in python connector
sunpe Aug 8, 2023
f7b3935
udpate user_privilege_show test case and add it to cases.task by charles
Aug 8, 2023
445277f
Merge pull request #22368 from taosdata/docs/sunpeng/fix-for-python-w…
zitsen Aug 8, 2023
90462fd
Merge pull request #22367 from taosdata/docs/sunpeng/fix-for-python-w…
zitsen Aug 8, 2023
e4d16e5
enh: check if disk space sufficient at primary dir with tfs
bgzhao66 Aug 8, 2023
bcc7df2
fix taosd cannot quit
yihaoDeng Aug 8, 2023
d683e13
Merge pull request #22352 from taosdata/test/fix_windows_case
plum-lihui Aug 8, 2023
5dbab16
test:fix comatibility case
tomchon Aug 8, 2023
d7116f7
Merge branch 'main' of https://github.com/taosdata/TDengine into test…
tomchon Aug 8, 2023
8d7e8f5
Merge pull request #22336 from taosdata/fix/TD-25445
plum-lihui Aug 8, 2023
0b88efd
test:modify base version 3100 in rollingup cases
tomchon Aug 8, 2023
aef0398
Merge pull request #22342 from taosdata/fix/TD-25426-3.0
dapan1121 Aug 8, 2023
8f7fbf1
test:fix comatibility case
tomchon Aug 8, 2023
cfb5247
change var name
yihaoDeng Aug 9, 2023
5c91800
Merge pull request #22362 from taosdata/szhou/fix-ts3795
dapan1121 Aug 9, 2023
e54a4d5
Merge pull request #22206 from taosdata/szhou/ts-3706
dapan1121 Aug 9, 2023
bb39d94
Merge pull request #22357 from taosdata/fix/liaohj
hjxilinx Aug 9, 2023
2c65ffc
remove the case user_privilege_multi_users.py from cases.task
Aug 8, 2023
37c39a1
Merge branch 'td_25179_update' of https://github.com/taosdata/TDengin…
Aug 9, 2023
c5aae97
remove unavailable codes in this commit
Aug 9, 2023
2573dcc
Merge branch 'td_25179_update' of https://github.com/taosdata/TDengin…
Aug 9, 2023
f02fd54
add test case to cases.task by charles
Aug 1, 2023
3cd147d
Merge branch 'ts-3479' of https://github.com/taosdata/TDengine into t…
Aug 9, 2023
50bf8c9
change default session val
yihaoDeng Aug 9, 2023
2b1478f
Revert "fix(tsdb/read2): reset stt reader when suspended"
shenglian-zhou Aug 7, 2023
e9e06d1
fix: restore stt block/data block merge back
shenglian-zhou Aug 7, 2023
2403db0
test:fix comatibility case
tomchon Aug 9, 2023
3cdb163
fix(stream): avoid launching check downstream when failed to add stre…
hjxilinx Aug 9, 2023
a88be28
Merge pull request #22281 from taosdata/ts-3479
plum-lihui Aug 9, 2023
0a3a597
Merge branch '3.0' into td_25179_update
flyingangel2013 Aug 9, 2023
58f0812
Merge pull request #22376 from taosdata/fix/liaohj
hjxilinx Aug 9, 2023
93bdefd
Update 05-insert.md 中文括号问题 (#22377)
CityChen81 Aug 9, 2023
8861702
Merge pull request #22369 from taosdata/td_25179_update
plum-lihui Aug 9, 2023
584427d
Merge pull request #22374 from taosdata/szhou/restore-minglei-main
plum-lihui Aug 9, 2023
70f0363
rm duplicate para
yihaoDeng Aug 9, 2023
b65336a
rm duplicate para
yihaoDeng Aug 9, 2023
0353344
Merge pull request #22379 from taosdata/doc/ts-3804
hjxilinx Aug 9, 2023
1d649bc
Merge pull request #22372 from taosdata/fix/TD-25626
hjxilinx Aug 9, 2023
4c92997
fix(stream): use streamId&taskId to identify the stream task in the s…
hjxilinx Aug 9, 2023
1e8579e
fix(stream): fix other cases.
hjxilinx Aug 9, 2023
10f5d22
Merge pull request #22370 from taosdata/FIX/TD-25605-3.0
plum-lihui Aug 9, 2023
9d69827
avoid removing taosx and taos-explorer while uninstall taosd
xiaopingcs Aug 9, 2023
51017cf
Merge pull request #22382 from taosdata/packaging/update_packaging_sc…
plum-lihui Aug 9, 2023
7e3f1d9
Merge branch 'main' into fix/liaohj
hjxilinx Aug 9, 2023
d6ed5fe
fix: timezone and qsort for windows
kailixu Aug 9, 2023
458b3ce
docs: Rename 27-index.md to 27-indexing.md (#22385)
danielclow Aug 9, 2023
0cf8144
fix(stream): fix the invalid key used by remove data in stream meta h…
hjxilinx Aug 9, 2023
0757e88
fix(stream): set the correct hash keys.
hjxilinx Aug 9, 2023
4393375
fix(stream): set correct task id.
hjxilinx Aug 9, 2023
012fd34
Merge pull request #22373 from taosdata/test/fix/comp
plum-lihui Aug 10, 2023
c73ac53
fix: add max_speed as keywordw
dapan1121 Aug 10, 2023
e15bddf
Merge pull request #22387 from taosdata/docs/max_speed
dapan1121 Aug 10, 2023
c3d1d47
Merge pull request #22380 from taosdata/fix/liaohj
hjxilinx Aug 10, 2023
c10b323
other: merge main.
hjxilinx Aug 10, 2023
1ce8d06
fix: proj col compare func
kailixu Aug 10, 2023
ee9cbd7
Merge pull request #22383 from taosdata/fix/TD-25623-3.0
dapan1121 Aug 10, 2023
b658608
Merge pull request #22388 from taosdata/fix/3_liaohj
hjxilinx Aug 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ cd TDengine
```bash
mkdir debug
cd debug
cmake .. -DBUILD_TOOLS=true
cmake .. -DBUILD_TOOLS=true -DBUILD_CONTRIB=true
make
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ It equals to execute following commands:
```bash
mkdir debug
cd debug
cmake .. -DBUILD_TOOLS=true
cmake .. -DBUILD_TOOLS=true -DBUILD_CONTRIB=true
make
```

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if [ ! -d debug ]; then
mkdir debug || echo -e "failed to make directory for build"
fi

cd debug && cmake .. -DBUILD_TOOLS=true && make
cd debug && cmake .. -DBUILD_TOOLS=true -DBUILD_CONTRIB=true && make

16 changes: 15 additions & 1 deletion docs/en/05-get-started/01-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ docker run -d -p 6030:6030 -p 6041:6041 -p 6043-6049:6043-6049 -p 6043-6049:6043

Note that TDengine Server 3.0 uses TCP port 6030. Port 6041 is used by taosAdapter for the REST API service. Ports 6043 through 6049 are used by taosAdapter for other connectors. You can open these ports as needed.

If you need to persist data to a specific directory on your local machine, please run the following command:
```shell
docker run -d -v ~/data/taos/dnode/data:/var/lib/taos \
-v ~/data/taos/dnode/log:/var/log/taos \
-p 6030:6030 -p 6041:6041 -p 6043-6049:6043-6049 -p 6043-6049:6043-6049/udp tdengine/tdengine
```
:::note

- /var/lib/taos: TDengine's default data file directory. The location can be changed via [configuration file]. Also you can modify ~/data/taos/dnode/data to your any local empty data directory
- /var/log/taos: TDengine's default log file directory. The location can be changed via [configure file]. you can modify ~/data/taos/dnode/log to your any local empty log directory

:::


Run the following command to ensure that your container is running:

```shell
Expand Down Expand Up @@ -113,4 +127,4 @@ In the query above you are selecting the first timestamp (ts) in the interval, a

## Additional Information

For more information about deploying TDengine in a Docker environment, see [Using TDengine in Docker](../../reference/docker).
For more information about deploying TDengine in a Docker environment, see [Deploying TDengine with Docker](../../deployment/docker).
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Deploying TDengine with Docker
sidebar_label: Docker
description: This chapter describes how to start and access TDengine in a Docker container.
---

Expand All @@ -10,8 +11,17 @@ This chapter describes how to start the TDengine service in a container and acce
The TDengine image starts with the HTTP service activated by default, using the following command:

```shell
docker run -d --name tdengine -p 6041:6041 tdengine/tdengine
docker run -d --name tdengine \
-v ~/data/taos/dnode/data:/var/lib/taos \
-v ~/data/taos/dnode/log:/var/log/taos \
-p 6041:6041 tdengine/tdengine
```
:::note

* /var/lib/taos: TDengine's default data file directory. The location can be changed via [configuration file]. And also you can modify ~/data/taos/dnode/data to your any other local emtpy data directory
* /var/log/taos: TDengine's default log file directory. The location can be changed via [configure file]. And also you can modify ~/data/taos/dnode/log to your any other local empty log directory

:::

The above command starts a container named "tdengine" and maps the HTTP service port 6041 to the host port 6041. You can verify that the HTTP service provided in this container is available using the following command.

Expand Down Expand Up @@ -283,39 +293,38 @@ services:
environment:
TAOS_FQDN: "td-1"
TAOS_FIRST_EP: "td-1"
ports:
- 6041:6041
- 6030:6030
volumes:
- taosdata-td1:/var/lib/taos/
- taoslog-td1:/var/log/taos/
# /var/lib/taos: TDengine's default data file directory. The location can be changed via [configuration file]. you can modify ~/data/taos/dnode1/data to your own data directory
- ~/data/taos/dnode1/data:/var/lib/taos
# /var/log/taos: TDengine's default log file directory. The location can be changed via [configure file]. you can modify ~/data/taos/dnode1/log to your own log directory
- ~/data/taos/dnode1/log:/var/log/taos
td-2:
image: tdengine/tdengine:$VERSION
environment:
TAOS_FQDN: "td-2"
TAOS_FIRST_EP: "td-1"
volumes:
- taosdata-td2:/var/lib/taos/
- taoslog-td2:/var/log/taos/
- ~/data/taos/dnode2/data:/var/lib/taos
- ~/data/taos/dnode2/log:/var/log/taos
td-3:
image: tdengine/tdengine:$VERSION
environment:
TAOS_FQDN: "td-3"
TAOS_FIRST_EP: "td-1"
volumes:
- taosdata-td3:/var/lib/taos/
- taoslog-td3:/var/log/taos/
volumes:
taosdata-td1:
taoslog-td1:
taosdata-td2:
taoslog-td2:
taosdata-td3:
taoslog-td3:
- ~/data/taos/dnode3/data:/var/lib/taos
- ~/data/taos/dnode3/log:/var/log/taos
```

:::note

- The `VERSION` environment variable is used to set the tdengine image tag
- `TAOS_FIRST_EP` must be set on the newly created instance so that it can join the TDengine cluster; if there is a high availability requirement, `TAOS_SECOND_EP` needs to be used at the same time
:::

:::

2. Start the cluster

Expand Down Expand Up @@ -382,24 +391,22 @@ networks:
services:
td-1:
image: tdengine/tdengine:$VERSION
networks:
- inter
environment:
TAOS_FQDN: "td-1"
TAOS_FIRST_EP: "td-1"
volumes:
- taosdata-td1:/var/lib/taos/
- taoslog-td1:/var/log/taos/
# /var/lib/taos: TDengine's default data file directory. The location can be changed via [configuration file]. you can modify ~/data/taos/dnode1/data to your own data directory
- ~/data/taos/dnode1/data:/var/lib/taos
# /var/log/taos: TDengine's default log file directory. The location can be changed via [configure file]. you can modify ~/data/taos/dnode1/log to your own log directory
- ~/data/taos/dnode1/log:/var/log/taos
td-2:
image: tdengine/tdengine:$VERSION
networks:
- inter
environment:
TAOS_FQDN: "td-2"
TAOS_FIRST_EP: "td-1"
volumes:
- taosdata-td2:/var/lib/taos/
- taoslog-td2:/var/log/taos/
- ~/data/taos/dnode2/data:/var/lib/taos
- ~/data/taos/dnode2/log:/var/log/taos
adapter:
image: tdengine/tdengine:$VERSION
entrypoint: "taosadapter"
Expand Down Expand Up @@ -431,11 +438,6 @@ services:
>> /etc/nginx/nginx.conf;cat /etc/nginx/nginx.conf;
nginx -g 'daemon off;'",
]
volumes:
taosdata-td1:
taoslog-td1:
taosdata-td2:
taoslog-td2:
```

## Deploy with docker swarm
Expand Down
2 changes: 1 addition & 1 deletion docs/en/10-deployment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: This document describes how to deploy a TDengine cluster on a serve

TDengine has a native distributed design and provides the ability to scale out. A few nodes can form a TDengine cluster. If you need higher processing power, you just need to add more nodes into the cluster. TDengine uses virtual node technology to virtualize a node into multiple virtual nodes to achieve load balancing. At the same time, TDengine can group virtual nodes on different nodes into virtual node groups, and use the replication mechanism to ensure the high availability of the system. The cluster feature of TDengine is completely open source.

This document describes how to manually deploy a cluster on a host as well as how to deploy on Kubernetes and by using Helm.
This document describes how to manually deploy a cluster on a host directly and deploy a cluster with Docker, Kubernetes or Helm.

```mdx-code-block
import DocCardList from '@theme/DocCardList';
Expand Down
2 changes: 1 addition & 1 deletion docs/en/12-taos-sql/01-data-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In TDengine, the data types below can be used when specifying a column or tag.
| 14 | NCHAR | User Defined | Multi-byte string that can include multi byte characters like Chinese characters. Each character of NCHAR type consumes 4 bytes storage. The string value should be quoted with single quotes. Literal single quote inside the string must be preceded with backslash, like `\'`. The length must be specified when defining a column or tag of NCHAR type, for example nchar(10) means it can store at most 10 characters of nchar type and will consume fixed storage of 40 bytes. An error will be reported if the string value exceeds the length defined. |
| 15 | JSON | | JSON type can only be used on tags. A tag of json type is excluded with any other tags of any other type. |
| 16 | VARCHAR | User-defined | Alias of BINARY |
| 16 | GEOMETRY | User-defined | Geometry |
| 17 | GEOMETRY | User-defined | Geometry |
:::note

- Each row of the table cannot be longer than 48KB (64KB since version 3.0.5.0) (note that each BINARY/NCHAR/GEOMETRY column takes up an additional 2 bytes of storage space).
Expand Down
158 changes: 158 additions & 0 deletions docs/en/12-taos-sql/10-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -1274,3 +1274,161 @@ SELECT SERVER_STATUS();
```

**Description**: The server status.


## Geometry Functions

### Geometry Input Functions

Geometry input functions create geometry data from WTK.

#### ST_GeomFromText

```sql
ST_GeomFromText(VARCHAR WKT expr)
```

**Description**: Return a specified GEOMETRY value from Well-Known Text representation (WKT).

**Return value type**: GEOMETRY

**Applicable data types**: VARCHAR

**Applicable table types**: standard tables and supertables

**Explanations**
- The input can be one of WTK string, like POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, GEOMETRYCOLLECTION.
- The output is a GEOMETRY data type, internal defined as binary string.

### Geometry Output Functions

Geometry output functions convert geometry data into WTK.

#### ST_AsText

```sql
ST_AsText(GEOMETRY geom)
```

**Description**: Return a specified Well-Known Text representation (WKT) value from GEOMETRY data.

**Return value type**: VARCHAR

**Applicable data types**: GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- The output can be one of WTK string, like POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, GEOMETRYCOLLECTION.

### Geometry Relationships Functions

Geometry relationships functions determine spatial relationships between geometries.

#### ST_Intersects

```sql
ST_Intersects(GEOMETRY geomA, GEOMETRY geomB)
```

**Description**: Compares two geometries and returns true if they intersect.

**Return value type**: BOOL

**Applicable data types**: GEOMETRY, GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- Geometries intersect if they have any point in common.


#### ST_Equals

```sql
ST_Equals(GEOMETRY geomA, GEOMETRY geomB)
```

**Description**: Returns TRUE if the given geometries are "spatially equal".

**Return value type**: BOOL

**Applicable data types**: GEOMETRY, GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- 'Spatially equal' means ST_Contains(A,B) = true and ST_Contains(B,A) = true, and the ordering of points can be different but represent the same geometry structure.


#### ST_Touches

```sql
ST_Touches(GEOMETRY geomA, GEOMETRY geomB)
```

**Description**: Returns TRUE if A and B intersect, but their interiors do not intersect.

**Return value type**: BOOL

**Applicable data types**: GEOMETRY, GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- A and B have at least one point in common, and the common points lie in at least one boundary.
- For Point/Point inputs the relationship is always FALSE, since points do not have a boundary.


#### ST_Covers

```sql
ST_Covers(GEOMETRY geomA, GEOMETRY geomB)
```

**Description**: Returns TRUE if every point in Geometry B lies inside (intersects the interior or boundary of) Geometry A.

**Return value type**: BOOL

**Applicable data types**: GEOMETRY, GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- A covers B means no point of B lies outside (in the exterior of) A.


#### ST_Contains

```sql
ST_Contains(GEOMETRY geomA, GEOMETRY geomB)
```

**Description**: Returns TRUE if geometry A contains geometry B.

**Return value type**: BOOL

**Applicable data types**: GEOMETRY, GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- A contains B if and only if all points of B lie inside (i.e. in the interior or boundary of) A (or equivalently, no points of B lie in the exterior of A), and the interiors of A and B have at least one point in common.


#### ST_ContainsProperly

```sql
ST_ContainsProperly(GEOMETRY geomA, GEOMETRY geomB)
```

**Description**: Returns TRUE if every point of B lies inside A.

**Return value type**: BOOL

**Applicable data types**: GEOMETRY, GEOMETRY

**Applicable table types**: standard tables and supertables

**Explanations**
- There is no point of B that lies on the boundary of A or in the exterior of A.
2 changes: 1 addition & 1 deletion docs/en/12-taos-sql/16-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ LIKE is used together with wildcards to match strings. Its usage is described as
MATCH and NMATCH are used together with regular expressions to match strings. Their usage is described as follows:

- Use POSIX regular expression syntax. For more information, see Regular Expressions.
- Regular expression can be used against only table names, i.e. `tbname`, and tags of binary/nchar types, but can't be used against data columns.
- Regular expression can be used against only table names, i.e. `tbname`, and tags/columns of binary/nchar types.
- The maximum length of regular expression string is 128 bytes. Configuration parameter `maxRegexStringLen` can be used to set the maximum allowed regular expression. It's a configuration parameter on the client side, and will take effect after restarting the client.

## Logical Operators
Expand Down
1 change: 1 addition & 0 deletions docs/en/12-taos-sql/20-keywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ The following list shows all reserved keywords:

- MATCH
- MAX_DELAY
- MAX_SPEED
- MAXROWS
- MERGE
- META
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/en/14-reference/03-connector/07-python.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ conn.execute("CREATE STABLE weather(ts TIMESTAMP, temperature FLOAT) TAGS (locat
<TabItem value="websocket" label="WebSocket connection">

```python
conn = taosws.connect(url="ws://localhost:6041")
conn = taosws.connect("taosws://localhost:6041")
# Execute a sql, ignore the result set, just get affected rows. It's useful for DDL and DML statement.
conn.execute("DROP DATABASE IF EXISTS test")
conn.execute("CREATE DATABASE test")
Expand Down