From 49636caebbb38ac78c55bc37dc503e634187a88f Mon Sep 17 00:00:00 2001 From: fengzero Date: Fri, 28 Oct 2022 05:42:45 +0000 Subject: [PATCH] fix(ekuiper): float/double precision --- plugins/ekuiper/json_rw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/ekuiper/json_rw.c b/plugins/ekuiper/json_rw.c index 7a66b634d..ccd4901eb 100644 --- a/plugins/ekuiper/json_rw.c +++ b/plugins/ekuiper/json_rw.c @@ -155,9 +155,10 @@ int json_encode_read_resp_tags(void *json_object, void *param) } neu_json_elem_t tag_elem = { - .name = json_tag.name, - .t = json_tag.t, - .v = json_tag.value, + .name = json_tag.name, + .t = json_tag.t, + .v = json_tag.value, + .precision = trans_data->tags[i].value.precision, }; ret = neu_json_encode_field((0 != json_tag.error) ? errors_object