Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/en/14-reference/02-tools/11-taosgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ Each column includes:
- random: Random generation.
- order: Sequential natural number growth (integer only).
- expression: Generated by expression (supports integer, float, double, and string types).
- null_ratio (float): Ratio of NULL values to generate, range [0.0, 1.0], default: 0.0. NULL represents an explicit null value and overwrites the column's latest value.
- none_ratio (float): Ratio of NONE values to generate, range [0.0, 1.0], default: 0.0. NONE represents missing data and does not overwrite the column's latest value (preserves previous value). The sum of null_ratio and none_ratio must not exceed 1.0.

##### Data Generation Methods

Expand Down
2 changes: 2 additions & 0 deletions docs/zh/14-reference/02-tools/11-taosgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ taosgen -h 127.0.0.1 -c config.yaml
- random:随机方式生成。
- order:按自然数顺序增长,仅适用整数类型。
- expression:根据表达式生成。适用整数类型、浮点数类型 float、double 和字符类型。
- null_ratio(浮点数):指定生成 NULL 值的比例,取值范围 [0.0, 1.0],默认值为 0.0。NULL 表示空值,写入后替换该列的最新值为空。
- none_ratio(浮点数):指定生成 NONE 值的比例,取值范围 [0.0, 1.0],默认值为 0.0。NONE 表示数据缺失,写入后不替换该列的最新值,保留原有值。null_ratio 与 none_ratio 之和不得超过 1.0。
Comment thread
YamingPei marked this conversation as resolved.

##### 数据生成方式详解

Expand Down
Loading