Skip to content

[Bug] [chunjun-connector-jdbc-base] clickhouse jdbc connection not supported setAutoCommit(false) #1913

Open
@fengjian1129

Description

@fengjian1129

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When I tried to implement the synchronization function of clickhouse2hive, I found the following error message.
Caused by: java.sql.SQLFeatureNotSupportedException: Transactions are not supported at ru.yandex.clickhouse.ClickHouseConnectionImpl.setAutoCommit(ClickHouseConnectionImpl.java:219) at com.dtstack.flinkx.connector.jdbc.source.JdbcInputFormat.openInternal(JdbcInputFormat.java:114)

I think the problem lies in this piece of code
image

What you expected to happen

I hope to control clickhouse-source to skip opening transactions by configuring parameters,for example:
image
Because the default value is "semantic": "at-least-once"`, it does not affect other synchronization functions

How to reproduce

When using clickhouse-source to read data, this type of problem may occur

Anything else

null

Version

master

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions