Skip to content

Commit 7ce3c3f

Browse files
authored
param db is not requied in import sql from 2091 (#1095)
1 parent b7e227a commit 7ce3c3f

8 files changed

Lines changed: 10 additions & 8 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ IoTDB supports three methods for data import:
4949
| `-u` | `--username` | Username. | No | `root` |
5050
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9-beta | No | `root` |
5151
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | `tree` |
52-
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table` | - |
52+
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9-beta, this parameter is optional when the file format is SQL. A prompt will be issued if the target database is not explicitly specified in either the parameter or the SQL statement. | - |
5353
| `-table` | `--table ` | Target table , required for CSV imports in table model | No | - |
5454
| `-s` | `--source` | Local path to the file/directory to import. ​​**Supported formats**​: CSV, SQL, TsFile. Unsupported formats trigger error: `The file name must end with "csv", "sql", or "tsfile"!` |**Yes** | - |
5555
| `-tn` | `--thread_num` | Maximum parallel threads | No | `8` <br> Range: 0 to Integer.Max(2147483647). |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ IoTDB supports three methods for data import:
5050
| `-u` | `--username` | Username. | No | `root` |
5151
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9.1 | No | `TimechoDB@2021`(Before V2.0.6 it is root) |
5252
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | `tree` |
53-
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table` | - |
53+
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9.2, this parameter is optional when the file format is SQL. A prompt will be issued if the target database is not explicitly specified in either the parameter or the SQL statement. | - |
5454
| `-table` | `--table ` | Target table , required for CSV imports in table model | No | - |
5555
| `-s` | `--source` | Local path to the file/directory to import. ​​**Supported formats**​: CSV, SQL, TsFile. Unsupported formats trigger error: `The file name must end with "csv", "sql", or "tsfile"!` |**Yes** | - |
5656
| `-tn` | `--thread_num` | Maximum parallel threads | No | `8` <br> Range: 0 to Integer.Max(2147483647). |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ IoTDB supports three methods for data import:
4949
| `-u` | `--username` | Username. | No | `root` |
5050
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9-beta | No | `root` |
5151
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | `tree` |
52-
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table` | - |
52+
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9-beta, this parameter is optional when the file format is SQL. A prompt will be issued if the target database is not explicitly specified in either the parameter or the SQL statement. | - |
5353
| `-table` | `--table ` | Target table , required for CSV imports in table model | No | - |
5454
| `-s` | `--source` | Local path to the file/directory to import. ​​**Supported formats**​: CSV, SQL, TsFile. Unsupported formats trigger error: `The file name must end with "csv", "sql", or "tsfile"!` |**Yes** | - |
5555
| `-tn` | `--thread_num` | Maximum parallel threads | No | `8` <br> Range: 0 to Integer.Max(2147483647). |

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ IoTDB supports three methods for data import:
5050
| `-u` | `--username` | Username. | No | `root` |
5151
| `-pw` | `--password` | Password. Supported for hidden input since V2.0.9.1 | No | `TimechoDB@2021`(Before V2.0.6 it is root) |
5252
| `-sql_dialect` | `--sql_dialect` | Select server model : tree or table | No | `tree` |
53-
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table` | - |
53+
| ` -db ` | `--database` | ​Target database , applies only to `-sql_dialect=table` |Yes when `-sql_dialect = table`;<br>Starting from version V2.0.9.2, this parameter is optional when the file format is SQL. A prompt will be issued if the target database is not explicitly specified in either the parameter or the SQL statement. | - |
5454
| `-table` | `--table ` | Target table , required for CSV imports in table model | No | - |
5555
| `-s` | `--source` | Local path to the file/directory to import. ​​**Supported formats**​: CSV, SQL, TsFile. Unsupported formats trigger error: `The file name must end with "csv", "sql", or "tsfile"!` |**Yes** | - |
5656
| `-tn` | `--thread_num` | Maximum parallel threads | No | `8` <br> Range: 0 to Integer.Max(2147483647). |
@@ -60,6 +60,7 @@ IoTDB supports three methods for data import:
6060
| `-ts` | `--trust_store` | Trust store. Supports hidden input. Supported since V2.0.9.1 | No | - |
6161
| `-tpw` | `--trust_store_password` | Trust store password. Supports hidden input. Supported since V2.0.9.1 | No | - |
6262

63+
6364
### 2.2 CSV Format
6465

6566
#### 2.2.1 Command

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ IoTDB 支持三种方式进行数据导入:
5252
| -pw | --password | 密码,自 V2.0.9-beta 起支持隐藏输入 || root |
5353
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or "sql"or "tsfile"!` ||
5454
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和 table 类型 || tree |
55-
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填 | - |
55+
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填;<br>V2.0.9-beta 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
5656
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 || - |
5757
| -tn | --thread\_num | 最大并行线程数 || 8<br>范围:0~Integer.Max=2147483647 |
5858
| -tz | --timezone | 时区设置,例如`+08:00``-01:00` || 本机系统时间 |

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ IoTDB 支持三种方式进行数据导入:
5353
| -pw | --password | 密码,自 V2.0.9.1 起支持隐藏输入 || TimechoDB@2021 (V2.0.6 版本之前为 root) |
5454
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or "sql"or "tsfile"!` ||
5555
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和 table 类型 || tree |
56-
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填 | - |
56+
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填;<br>V2.0.9.2 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
5757
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 || - |
5858
| -tn | --thread\_num | 最大并行线程数 || 8<br>范围:0~Integer.Max=2147483647 |
5959
| -tz | --timezone | 时区设置,例如`+08:00``-01:00` || 本机系统时间 |
@@ -63,6 +63,7 @@ IoTDB 支持三种方式进行数据导入:
6363
| -tpw | --trust_store_password | 信任库密码。支持隐藏输入,自 V2.0.9.1 起支持 || - |
6464

6565

66+
6667
### 2.2 CSV 格式
6768

6869
#### 2.2.1 运行命令

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ IoTDB 支持三种方式进行数据导入:
5252
| -pw | --password | 密码,自 V2.0.9-beta 起支持隐藏输入 || root |
5353
| -s | --source | 待加载的脚本文件(夹)的本地目录路径<br>如果为 csv sql tsfile 这三个支持的格式,直接导入<br>不支持的格式,报错提示`The file name must end with "csv" or "sql"or "tsfile"!` ||
5454
| -sql_dialect | --sql_dialect | 选择 server 是树模型还是表模型,当前支持 tree 和 table 类型 || tree |
55-
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填 | - |
55+
| -db | --database | 数据将要导入的目标库,只在 `-sql_dialect` 为 table 类型下生效。 |-sql_dialect 为 table 时必填;<br>V2.0.9-beta 版本起,当文件格式为 SQL 时,该参数为可选参数,若参数或 SQL 中均未显式指定目标数据库时会进行提示。 | - |
5656
| -table | --table | 数据将要导入的目标表,只在 `-sql_dialect` 为 table 类型且文件类型为 csv 条件下生效且必填。 || - |
5757
| -tn | --thread\_num | 最大并行线程数 || 8<br>范围:0~Integer.Max=2147483647 |
5858
| -tz | --timezone | 时区设置,例如`+08:00``-01:00` || 本机系统时间 |

0 commit comments

Comments
 (0)