Hey all,
I am facing an issue with flink-connector-jdbc-core:4.0.0-2.0 and clickhouseclickhouse jdbc0.8.6.
I have created JdbcSink using ClickHouseDriver and every time the SimpleBatchStatementExecutor::executeBatch is been called, we insert all the previous batches as well.
I looked at the code and saw that there is no clear of the field batchValues (of com.clickhouse.jdbc.PreparedStatementImpl) in any phase, only when we create new preparedStatement of course.
So using both of them together is not possible since we insert each batch in every insert command.
Is it a known issue? is there any fix for it? can we create new PreparedStatement after each executeBatch function call?