docs: escape_character parameter in document classification error (#32421)

This commit is contained in:
kevin men 2025-08-01 09:57:01 +08:00 committed by GitHub
parent db89e67e03
commit fc410c3828
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View File

@ -216,8 +216,11 @@ In insertion scenarios, `filetype` must be set to `insert`. For this parameter a
- **keep_trying**: Number of retries after failure, default is no retry. Requires version v3.0.9 or above.
- **trying_interval**: Interval between retries in milliseconds, effective only when retries are specified in keep_trying. Requires version v3.0.9 or above.
- **childtable_from and childtable_to**: Specifies the range of child tables to write to, the interval is [childtable_from, childtable_to].
- **escape_character**: Whether the supertable and child table names contain escape characters, default is "no", options are "yes" or "no".
- **continue_if_fail**: Allows users to define behavior after failure
"continue_if_fail": "no", taosBenchmark exits automatically upon failure, default behavior
@ -244,8 +247,6 @@ Parameters related to supertable creation are configured in the `super_tables` s
- **childtable_prefix**: Prefix for child table names, mandatory, no default value.
- **escape_character**: Whether the supertable and child table names contain escape characters, default is "no", options are "yes" or "no".
- **auto_create_table**: Effective only when insert_mode is taosc, rest, stmt and child_table_exists is "no", "yes" means taosBenchmark will automatically create non-existent tables during data insertion; "no" means all tables are created in advance before insertion.
- **batch_create_tbl_num**: Number of tables created per batch during child table creation, default is 10. Note: The actual number of batches may not match this value, if the executed SQL statement exceeds the maximum supported length, it will be automatically truncated and executed, continuing the creation.

View File

@ -119,8 +119,11 @@ taosBenchmark -f <json file>
- **keep_trying**:失败后进行重试的次数,默认不重试。需使用 v3.0.9 以上版本。
- **trying_interval**:失败重试间隔时间,单位为毫秒,仅在 keep_trying 指定重试后有效。需使用 v3.0.9 以上版本。
- **childtable_from 和 childtable_to**:指定写入子表范围,开闭区间为 [childtable_from, childtable_to] 。
 
- **escape_character**:超级表和子表名称中是否包含转义字符,默认值为 "no",可选值为 "yes" 或 "no" 。
- **continue_if_fail**:允许用户定义失败后行为。
“continue_if_fail”“no”失败 taosBenchmark 自动退出,默认行为。
@ -147,8 +150,6 @@ taosBenchmark -f <json file>
- **childtable_prefix**:子表名称的前缀,必选配置项,没有默认值。
- **escape_character**:超级表和子表名称中是否包含转义字符,默认值为 "no",可选值为 "yes" 或 "no" 。
- **auto_create_table**:仅当 insert_mode 为 taosc、rest、stmt 并且 child_table_exists 为 "no" 时生效,该参数为 "yes" 表示 taosBenchmark 在插入数据时会自动创建不存在的表;为 "no" 则表示先提前建好所有表再进行插入。
- **batch_create_tbl_num**:创建子表时每批次的建表数量,默认为 10。注实际的批数不一定与该值相同当执行的 SQL 语句大于支持的最大长度时,会自动截断再执行,继续创建。

View File

@ -2067,6 +2067,10 @@ static BArray *initChildCols(int colsSize) {
int prepareSampleData(SDataBase* database, SSuperTable* stbInfo) {
stbInfo->lenOfCols = accumulateRowLen(stbInfo->cols, stbInfo->iface);
stbInfo->lenOfTags = accumulateRowLen(stbInfo->tags, stbInfo->iface);
if (stbInfo->useTagTableName) {
// add tag table name length
stbInfo->lenOfTags += TSDB_TABLE_NAME_LEN + 1; // +1 for comma
}
if (stbInfo->partialColNum != 0
&& ((stbInfo->iface == TAOSC_IFACE
|| stbInfo->iface == REST_IFACE))) {