Bladeren bron

Merge pull request #14149 from emqx/old-bridge-api-failed-clickhouse

Creating Clickhouse bridge failed using the old bridge API
Xinyu Liu 1 jaar geleden
bovenliggende
commit
d79c7c71a0

+ 1 - 1
apps/emqx_bridge_clickhouse/src/emqx_bridge_clickhouse.app.src

@@ -1,6 +1,6 @@
 {application, emqx_bridge_clickhouse, [
     {description, "EMQX Enterprise ClickHouse Bridge"},
-    {vsn, "0.4.3"},
+    {vsn, "0.4.4"},
     {registered, []},
     {applications, [
         kernel,

+ 1 - 1
apps/emqx_bridge_clickhouse/src/emqx_bridge_clickhouse.erl

@@ -84,7 +84,7 @@ values(_Method, Type) ->
         enable => true,
         type => Type,
         name => <<"foo">>,
-        server => <<"127.0.0.1:8123">>,
+        url => <<"http://127.0.0.1:8123">>,
         database => <<"mqtt">>,
         pool_size => 8,
         username => <<"default">>,

+ 1 - 1
apps/emqx_bridge_clickhouse/src/emqx_bridge_clickhouse_action_info.erl

@@ -48,7 +48,7 @@ connector_action_config_to_bridge_v1_config(ConnectorRawConf, ActionRawConf) ->
     RawConf = emqx_action_info:connector_action_config_to_bridge_v1_config(
         ConnectorRawConf, ActionRawConf
     ),
-    maps:without([<<"clickhouse_type">>], RawConf).
+    maps:without([<<"clickhouse_type">>, <<"undefined_vars_as_null">>], RawConf).
 
 bridge_v1_type_name() -> clickhouse.
 

+ 1 - 0
changes/ee/fix-14149.md

@@ -0,0 +1 @@
+Failed to create ClickHouse bridges using the old `/bridges` API due to `#{reason => unknown_fields, unknown => "undefined_vars_as_null"}`.