数据源是ElasticSearch,指标原始类型为float,数值类型,但是不能求和,报错下图:
报错如下:
Caused by: java.lang.RuntimeException: HttpClient查询失败: {“error”:{“root_cause”:[{“type”:“sql_illegal_argument_exception”,“reason”:“Does not know how to convert argument CAST(t_a_0.total_amount{f}#10696) for function SUM(CAST(t_a_0.total_amount{f}#10696))”}],“type”:“sql_illegal_argument_exception”,“reason”:“Does not know how to convert argument CAST(t_a_0.total_amount{f}#10696) for function SUM(CAST(t_a_0.total_amount{f}#10696))”},“status”:500}
at io.dataease.plugins.common.util.HttpClientUtil.post(HttpClientUtil.java:140)
at io.dataease.provider.datasource.EsProvider.getData(EsProvider.java:63)
… 122 common frames omitted