From c24a84e3705645ff7a30e218f63b3178306f518a Mon Sep 17 00:00:00 2001 From: Kjell Winblad Date: Fri, 3 Mar 2023 10:54:47 +0100 Subject: [PATCH] docs: fix spelling --- lib-ee/emqx_ee_bridge/i18n/emqx_ee_bridge_clickhouse.conf | 6 +++--- lib-ee/emqx_ee_bridge/src/emqx_ee_bridge.erl | 7 ++----- scripts/spellcheck/dicts/emqx.txt | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib-ee/emqx_ee_bridge/i18n/emqx_ee_bridge_clickhouse.conf b/lib-ee/emqx_ee_bridge/i18n/emqx_ee_bridge_clickhouse.conf index c38365d81..6a28b371a 100644 --- a/lib-ee/emqx_ee_bridge/i18n/emqx_ee_bridge_clickhouse.conf +++ b/lib-ee/emqx_ee_bridge/i18n/emqx_ee_bridge_clickhouse.conf @@ -21,7 +21,7 @@ will be forwarded. desc { en: """SQL Template. The template string can contain placeholders for message metadata and payload field. The placeholders are inserted -without any checking and special formatting so it is important to +without any checking and special formatting, so it is important to ensure that the inserted values are formatted and escaped correctly.""" zh: """SQL模板。模板字符串可以包含消息元数据和有效载荷字段的占位符。占位符 @@ -41,7 +41,7 @@ ensure that the inserted values are formatted and escaped correctly.""" en: """The bridge repeats what comes after the VALUES or FORMAT FormatType in the SQL template to form a batch request. The value specified with this parameter will be inserted between the values. The default -value ',' works for the VALUES format but other values +value ',' works for the VALUES format, but other values might be needed if you specify some other format with the clickhouse FORMAT syntax. @@ -76,7 +76,7 @@ https://clickhouse.com/docs/en/interfaces/formats#formats 了解更多关于 desc_config { desc { - en: """Configuration for an Clickhouse bridge.""" + en: """Configuration for a Clickhouse bridge.""" zh: """Clickhouse 桥接配置""" } label: { diff --git a/lib-ee/emqx_ee_bridge/src/emqx_ee_bridge.erl b/lib-ee/emqx_ee_bridge/src/emqx_ee_bridge.erl index dc7ee2be6..b7f35537e 100644 --- a/lib-ee/emqx_ee_bridge/src/emqx_ee_bridge.erl +++ b/lib-ee/emqx_ee_bridge/src/emqx_ee_bridge.erl @@ -190,15 +190,12 @@ pgsql_structs() -> clickhouse_structs() -> [ - {Type, + {clickhouse, mk( hoconsc:map(name, ref(emqx_ee_bridge_clickhouse, "config")), #{ - desc => <>, + desc => <<"Clickhouse Bridge Config">>, required => false } )} - || {Type, Name} <- [ - {clickhouse, <<"Clickhouse">>} - ] ]. diff --git a/scripts/spellcheck/dicts/emqx.txt b/scripts/spellcheck/dicts/emqx.txt index f922eebb9..5975ebd1b 100644 --- a/scripts/spellcheck/dicts/emqx.txt +++ b/scripts/spellcheck/dicts/emqx.txt @@ -267,5 +267,5 @@ keytab jq nif TDengine -Clickhouse clickhouse +FormatType