diff options
| author | lifengchao <[email protected]> | 2023-12-22 17:24:24 +0800 |
|---|---|---|
| committer | lifengchao <[email protected]> | 2023-12-22 17:24:24 +0800 |
| commit | 493e4f319217f3d7a9212900c1c68225ea442776 (patch) | |
| tree | a8354c709968bfa3a45c327344876ab0fb1ba842 /groot-connectors | |
| parent | 79f2424be50b88c60c24f05183b29e922a398cf9 (diff) | |
[Feature][connector-clickhouse] 类型转换失败,打印具体失败列和完成日志对象
Diffstat (limited to 'groot-connectors')
| -rw-r--r-- | groot-connectors/connector-clickhouse/src/main/java/com/geedgenetworks/connectors/clickhouse/sink/EventBatchIntervalClickHouseSink.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/groot-connectors/connector-clickhouse/src/main/java/com/geedgenetworks/connectors/clickhouse/sink/EventBatchIntervalClickHouseSink.java b/groot-connectors/connector-clickhouse/src/main/java/com/geedgenetworks/connectors/clickhouse/sink/EventBatchIntervalClickHouseSink.java index 3abacbe..b4cf0bb 100644 --- a/groot-connectors/connector-clickhouse/src/main/java/com/geedgenetworks/connectors/clickhouse/sink/EventBatchIntervalClickHouseSink.java +++ b/groot-connectors/connector-clickhouse/src/main/java/com/geedgenetworks/connectors/clickhouse/sink/EventBatchIntervalClickHouseSink.java @@ -1,5 +1,6 @@ package com.geedgenetworks.connectors.clickhouse.sink; +import com.alibaba.fastjson2.JSON; import com.geedgenetworks.core.pojo.Event; import com.github.housepower.data.Block; @@ -31,7 +32,7 @@ public class EventBatchIntervalClickHouseSink extends AbstractBatchIntervalClick try { batch.setObject(i, columnConverters[i].convert(value)); } catch (Exception e) { - throw new RuntimeException(columnNames[i] + "列转换值出错:" + value + ", event data:" + map, e); + throw new RuntimeException(columnNames[i] + "列转换值出错:" + value + ", event data:" + JSON.toJSONString(map), e); } } } |
