Commit c2258558 by inrgihc

修复issue:ICEBYU

parent 864e824c
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
> 执行器基于sentinel支持接口的流量控制功能。 > 执行器基于sentinel支持接口的流量控制功能。
- 支持接口异常触发告警功能 - 支持接口异常触发告警功能
> 执行器简单配置即可对接已有的告警平台,支持接口的异常告警功能。 > 简单配置即可对接已有的告警平台,支持接口异常时的告警功能。
### 2、支持的数据库 ### 2、支持的数据库
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
- Apache Doris - Apache Doris
- StarRocks - StarRocks
- OceanBase - OceanBase
- TDEngine - TDengine
### 3、模块结构功能 ### 3、模块结构功能
...@@ -186,7 +186,7 @@ MYSQLDB_PASSWORD=123456 ...@@ -186,7 +186,7 @@ MYSQLDB_PASSWORD=123456
``` ```
>sqlrest的缓存支持使用分布式的hazelcast或者redis,在conf/{manager,gateway,executor}/目录下的application.yml配 >sqlrest的缓存支持使用分布式的hazelcast或者redis,在conf/{manager,gateway,executor}/目录下的application.yml配
>置文件中,可通过如下配置所使用的缓存,默认为使用hazelcast缓存。 >置文件中,可通过如下调整配置实用redis缓存,默认为使用hazelcast缓存。
``` ```
sqlrest: sqlrest:
...@@ -195,7 +195,7 @@ sqlrest: ...@@ -195,7 +195,7 @@ sqlrest:
# 是否开启使用hazelcast缓存 # 是否开启使用hazelcast缓存
enabled: false enabled: false
redis: redis:
# 是否开启使用redis缓存,开启时需要配置对应redis信息 # 是否开启使用redis缓存,开启时需要配置下面对应的redis信息
enabled: true enabled: true
host: 127.0.0.1 host: 127.0.0.1
port: 6379 port: 6379
......
...@@ -468,7 +468,7 @@ public enum ProductTypeEnum { ...@@ -468,7 +468,7 @@ public enum ProductTypeEnum {
ProductContext.builder() ProductContext.builder()
.id(19) .id(19)
.quote("`") .quote("`")
.name("TDEngine") .name("TDengine")
.driver("com.taosdata.jdbc.rs.RestfulDriver") .driver("com.taosdata.jdbc.rs.RestfulDriver")
.defaultPort(6041) .defaultPort(6041)
.testSql("/* ping */ SELECT 1") .testSql("/* ping */ SELECT 1")
......
...@@ -33,7 +33,7 @@ public class NumberValueSerializer extends StdSerializer<Number> { ...@@ -33,7 +33,7 @@ public class NumberValueSerializer extends StdSerializer<Number> {
throws IOException { throws IOException {
if (value != null) { if (value != null) {
if (value instanceof BigDecimal) { if (value instanceof BigDecimal) {
BigDecimal decimal = ((BigDecimal) value).setScale(this.decimalScale); BigDecimal decimal = ((BigDecimal) value).setScale(this.decimalScale, BigDecimal.ROUND_FLOOR);
jsonGenerator.writeNumber(decimal); jsonGenerator.writeNumber(decimal);
} else if (value instanceof BigInteger) { } else if (value instanceof BigInteger) {
jsonGenerator.writeNumber((BigInteger) value); jsonGenerator.writeNumber((BigInteger) value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment