Merge pull request #169 from InterestingLab/rickyhuo.docs.clickhouse
Add note in dosc of clickhouse
diff --git a/docs/en/configuration/output-plugins/Clickhouse.md b/docs/en/configuration/output-plugins/Clickhouse.md
index 33ebfa2..f4557b7 100644
--- a/docs/en/configuration/output-plugins/Clickhouse.md
+++ b/docs/en/configuration/output-plugins/Clickhouse.md
@@ -49,6 +49,12 @@
ClickHouse username, only used when ClickHouse has authority authentication.
+### Note
+
+Before the data is written to ClickHouse, all fields need to be converted to the type corresponding to the table structure in ClickHouse.
+
+It should be noted that the corresponding field of the **Date** needs to be converted to String with format of `yyyy-MM-dd` and the corresponding field of the **DateTime** needs to be converted to String with format of `yyyy-MM-dd HH:mm:ss`.
+
### Examples
```
diff --git a/docs/zh-cn/configuration/filter-plugins/Date.md b/docs/zh-cn/configuration/filter-plugins/Date.md
index 5ea9799..4b1d182 100644
--- a/docs/zh-cn/configuration/filter-plugins/Date.md
+++ b/docs/zh-cn/configuration/filter-plugins/Date.md
@@ -69,8 +69,8 @@
date {
source_field = "timestamp"
target_field = "date"
- source_field_format = "UNIX"
- target_field_format = "yyyy/MM/dd"
+ source_time_format = "UNIX"
+ target_time_format = "yyyy/MM/dd"
}
```
diff --git a/docs/zh-cn/configuration/output-plugins/Clickhouse.md b/docs/zh-cn/configuration/output-plugins/Clickhouse.md
index 8301284..80c6ecf 100644
--- a/docs/zh-cn/configuration/output-plugins/Clickhouse.md
+++ b/docs/zh-cn/configuration/output-plugins/Clickhouse.md
@@ -49,6 +49,12 @@
Clickhouse用户用户名,仅当Clickhouse中开启权限时需要此字段
+### Note
+
+数据在写入ClickHouse之前,所有字段需要转换为ClickHouse中表结构对应的类型。
+
+需要注意的是,Date类型对应字段需要转换为`yyyy-MM-dd`格式字符串。DateTime类型对应字段需要转换为`yyyy-MM-dd HH:mm:ss`格式字符串。
+
### Examples
```