Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before the change: ``` [error] input-config: '$hcVal' => [#{'$hcTyp' => object, '$hcVal' => #{<<"key">> => #{'$hcTyp' => string,'$hcVal' => <<"ts">>, '$hcMeta' => #{line => 45, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}, <<"value">> => #{'$hcTyp' => string, '$hcVal' => <<"concat([topic, '/', a.b])">>, '$hcMeta' => #{line => 46, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}}, '$hcMeta' => #{line => 46, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}], '$hcMeta' => #{line => 43, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}} path => "message_transformation.transformations.1", exception => function_clause,field => <<"transform">>} <---------------------------------------- escript: exception error: #{reason => failed_to_check_field, path => "message_transformation.transformations.1", exception => function_clause,field => <<"transform">>} in function emqx_message_transformation_schema:fields/1 called as emqx_message_transformation_schema:fields(transform_kv222) in call from hocon_schema:fields_and_meta/2 (hocon_schema.erl, line 278) in call from hocon_schema:fields/2 (hocon_schema.erl, line 271) in call from hocon_tconf:map_field/4 (hocon_tconf.erl, line 584) in call from hocon_tconf:map_one_field_non_hidden/4 (hocon_tconf.erl, line 492) in call from hocon_tconf:do_map_array/5 (hocon_tconf.erl, line 801) in call from hocon_tconf:'-map_field/4-fun-4-'/4 (hocon_tconf.erl, line 622) in call from hocon_tconf:map_one_field_non_hidden/4 (hocon_tconf.erl, line 492) ``` After the change: ``` [error] input-config: '$hcVal' => [#{'$hcTyp' => object, '$hcVal' => #{<<"key">> => #{'$hcTyp' => string,'$hcVal' => <<"ts">>, '$hcMeta' => #{line => 45, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}, <<"value">> => #{'$hcTyp' => string, '$hcVal' => <<"concat([topic, '/', a.b])">>, '$hcMeta' => #{line => 46, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}}, '$hcMeta' => #{line => 46, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}, #{'$hcTyp' => object, '$hcVal' => #{<<"key">> => #{'$hcTyp' => string,'$hcVal' => <<"bah">>, '$hcMeta' => #{line => 49, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}, <<"value">> => #{'$hcTyp' => string, '$hcVal' => <<"schema_decode('avro', 'bah')">>, '$hcMeta' => #{line => 50, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}}, '$hcMeta' => #{line => 50, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}, #{'$hcTyp' => object, '$hcVal' => #{<<"key">> => #{'$hcTyp' => string,'$hcVal' => <<"bah">>, '$hcMeta' => #{line => 53, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}, <<"value">> => #{'$hcTyp' => string, '$hcVal' => <<"schema_encode('avro', 'bah')">>, '$hcMeta' => #{line => 54, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}}, '$hcMeta' => #{line => 54, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}}], '$hcMeta' => #{line => 43, filename => "/home/thales/dev/emqx/emqx/_build/emqx-enterprise/rel/emqx/data/configs/cluster.hocon"}} path => "message_transformation.transformations.1", exception => #{reason => function_clause, <----------------------------------------------------- stacktrace => [{emqx_message_transformation_schema,fields, [operation_wrong_ref], [{file,"emqx_message_transformation_schema.erl"},{line,39}]}, {hocon_schema,fields_and_meta,2, [{file,"hocon_schema.erl"},{line,278}]}, {hocon_schema,fields,2,[{file,"hocon_schema.erl"},{line,271}]}, {hocon_tconf,map_field,4,[{file,"hocon_tconf.erl"},{line,581}]}, {hocon_tconf,map_one_field_non_hidden,4, [{file,"hocon_tconf.erl"},{line,492}]}, {hocon_tconf,do_map_array,5, [{file,"hocon_tconf.erl"},{line,798}]}, {hocon_tconf,'-map_field/4-fun-4-',4, [{file,"hocon_tconf.erl"},{line,619}]}, {hocon_tconf,map_one_field_non_hidden,4, [{file,"hocon_tconf.erl"},{line,492}]}], kind => error}, field => <<"operations">>} escript: exception throw: #{reason => failed_to_check_field, path => "message_transformation.transformations.1", exception => #{reason => function_clause, stacktrace => [{emqx_message_transformation_schema,fields, [operation_wrong_ref], [{file, "emqx_message_transformation_schema.erl"}, {line,39}]}, {hocon_schema,fields_and_meta,2, [{file,"hocon_schema.erl"},{line,278}]}, {hocon_schema,fields,2, [{file,"hocon_schema.erl"},{line,271}]}, {hocon_tconf,map_field,4, [{file,"hocon_tconf.erl"},{line,581}]}, {hocon_tconf,map_one_field_non_hidden,4, [{file,"hocon_tconf.erl"},{line,492}]}, {hocon_tconf,do_map_array,5, [{file,"hocon_tconf.erl"},{line,798}]}, {hocon_tconf,'-map_field/4-fun-4-',4, [{file,"hocon_tconf.erl"},{line,619}]}, {hocon_tconf,map_one_field_non_hidden,4, [{file,"hocon_tconf.erl"},{line,492}]}], kind => error}, field => <<"operations">>} ```
- Loading branch information