You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/07/27 09:48:34 UTC

[GitHub] [iotdb] yschengzi commented on a change in pull request #3576: [IOTDB-1519]add metadata checking option and change grammar for loading tsfile

yschengzi commented on a change in pull request #3576:
URL: https://github.com/apache/iotdb/pull/3576#discussion_r677294548



##########
File path: docs/zh/UserGuide/System-Tools/Load-External-Tsfile.md
##########
@@ -30,31 +30,45 @@
 用户通过Cli工具或JDBC向Apache IoTDB系统发送指定命令实现文件加载的功能。
 
 #### 加载tsfile文件
-加载tsfile文件的指令为:`load "<path/dir>" [true/false] [storage group level]`
+加载tsfile文件的指令为:`load "<path/dir>" [schema=true/false][,level=int][,metadata=true/false]`
 
 该指令有两种用法:
 1. 通过指定文件路径(绝对路径)加载单tsfile文件。
 
-第二个参数表示待加载的tsfile文件的路径,其中文件名称需要符合tsfile的命名规范,即`{systemTime}-{versionNum}-{mergeNum}.tsfile`。第三、四个参数为可选项。当待加载的tsfile文件中时间序列对应的元数据不存在时,用户可以选择是否自动创建schema,参数为true表示自动创建schema,相反false表示不创建,缺省时默认创建schema。当tsfile对应的存储组不存在时,用户可以通过第四个参数来制定存储组的级别,默认为`iotdb-engine.properties`中设置的级别。若待加载的tsfile文件对应的`.resource`文件存在,会被一并加载至Apache IoTDB数据文件的目录和引擎中,否则将通过tsfile文件重新生成对应的`.resource`文件,即加载的tsfile文件所对应的`.resource`文件不是必要的。
+第二个参数表示待加载的tsfile文件的路径,其中文件名称需要符合tsfile的命名规范,即`{systemTime}-{versionNum}-{mergeNum}.tsfile`或者`{systemTime}-{versionNum}-{mergeNum}-{unsequenceMergeNum}.tsfile`。load命令有三个可选项,分别是schema,值域为true/false,level,值域为正整数,metadatat,值域为true/false。不同选项之间用逗号连接,选项之间无顺序要求。
+
+schema选项表示当待加载的tsfile文件中时间序列对应的元数据不存在时,用户可以选择是否自动创建schema,参数为true表示自动创建schema,相反false表示不创建,缺省时默认创建schema。

Review comment:
       already fix it




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org