Skip to content

Commit 7ce4526

Browse files
leto-bbqCritasWang
authored andcommitted
optimize q and timeout in data export from 208 (apache#970)
1 parent a4b02c0 commit 7ce4526

16 files changed

Lines changed: 112 additions & 112 deletions

src/UserGuide/Master/Table/Tools-System/Data-Export-Tool_apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The data export tool `export-data.sh/bat` is located in the `tools` directory an
4242
|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
4343
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
4444
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
45-
| `-q` | `--query` | SQL query command to execute. | No | - |
46-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
45+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
46+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
4747
| `-help` | `--help` | Display help information. | No | - |
4848

4949
### 2.2 CSV Format

src/UserGuide/Master/Table/Tools-System/Data-Export-Tool_timecho.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The data export tool `export-data.sh/bat` is located in the `tools` directory an
4242
|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
4343
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
4444
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
45-
| `-q` | `--query` | SQL query command to execute. | No | - |
46-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
45+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
46+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
4747
| `-help` | `--help` | Display help information. | No | - |
4848

4949
### 2.2 CSV Format

src/UserGuide/Master/Tree/Tools-System/Data-Export-Tool_apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ The data export tool, export-data.sh (Unix/OS X) or export-data.bat (Windows), l
3737
| `-pw` | `--password` | Password for authentication. | No | `root` |
3838
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
3939
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
40-
| `-q` | `--query` | SQL query command to execute. | No | - |
41-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
40+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
41+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
4242
| `-help` | `--help` | Display help information. | No | - |
4343

4444
### 2.2 CSV Format

src/UserGuide/Master/Tree/Tools-System/Data-Export-Tool_timecho.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ The data export tool, export-data.sh (Unix/OS X) or export-data.bat (Windows), l
2828

2929
## 2. Detailed Functionality
3030
### 2.1 Common Parameters
31-
| Short | Full Parameter | Description | Required | Default |
32-
| ---------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------- |------------------------------------------------|
33-
| `-ft` | `--file_type` | Export file type: `csv`, `sql`, `tsfile`. |**Yes** | - |
34-
| `-h` | `--host` | Hostname of the IoTDB server. | No | `127.0.0.1` |
35-
| `-p` | `--port` | Port number of the IoTDB server. | No | `6667` |
36-
| `-u` | `--username` | Username for authentication. | No | `root` |
37-
| `-pw` | `--password` | Password for authentication. | No | `TimechoDB@2021`(Before V2.0.6 it is `root` ) |
38-
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
39-
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
40-
| `-q` | `--query` | SQL query command to execute. | No | - |
41-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
42-
| `-help` | `--help` | Display help information. | No | - |
31+
| Short | Full Parameter | Description | Required | Default |
32+
| ---------------- | -------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------| ----------------- |-----------------------------------------------------------------------------------------------------|
33+
| `-ft` | `--file_type` | Export file type: `csv`, `sql`, `tsfile`. |**Yes** | - |
34+
| `-h` | `--host` | Hostname of the IoTDB server. | No | `127.0.0.1` |
35+
| `-p` | `--port` | Port number of the IoTDB server. | No | `6667` |
36+
| `-u` | `--username` | Username for authentication. | No | `root` |
37+
| `-pw` | `--password` | Password for authentication. | No | `TimechoDB@2021`(Before V2.0.6 it is `root` ) |
38+
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
39+
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
40+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
41+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
42+
| `-help` | `--help` | Display help information. | No | - |
4343

4444
### 2.2 CSV Format
4545
#### 2.2.1 Command

src/UserGuide/latest-Table/Tools-System/Data-Export-Tool_apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The data export tool `export-data.sh/bat` is located in the `tools` directory an
4242
|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
4343
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
4444
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
45-
| `-q` | `--query` | SQL query command to execute. | No | - |
46-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
45+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
46+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
4747
| `-help` | `--help` | Display help information. | No | - |
4848

4949
### 2.2 CSV Format

src/UserGuide/latest-Table/Tools-System/Data-Export-Tool_timecho.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The data export tool `export-data.sh/bat` is located in the `tools` directory an
4242
|`-end_time` |`--end_time` | The end time of the data to be exported only takes effect when `-sql_dialect` is set to the table type. If `-q` is specified, this parameter will not take effect.| No | - |
4343
| `-t` | `--target` | Target directory for the output files. If the path does not exist, it will be created. |**Yes** | - |
4444
| `-pfn` | `--prefix_file_name` | Prefix for the exported file names. For example, `abc` will generate files like `abc_0.tsfile`, `abc_1.tsfile`. | No | `dump_0.tsfile` |
45-
| `-q` | `--query` | SQL query command to execute. | No | - |
46-
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (Range: -1~Long max=9223372036854775807) |
45+
| `-q` | `--query` | SQL query command to execute. Starting from v2.0.8, semicolons in SQL statements are automatically removed, and query execution proceeds normally. | No | - |
46+
| `-timeout` | `--query_timeout` | Query timeout in milliseconds (ms). | No | `-1` (before v2.0.8)<br>`Long.MAX_VALUE` (v2.0.8 and later)<br>(Range: `-1~Long.MAX_VALUE`) |
4747
| `-help` | `--help` | Display help information. | No | - |
4848

4949
### 2.2 CSV Format

0 commit comments

Comments
 (0)