Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
fengjian1129 opened this issue Aug 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fengjian1129
Copy link

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

@fengjian1129 fengjian1129 added the bug Something isn't working label Aug 12, 2024
@fengjian1129
Copy link
Author

I think this can unify the management of whether transactions are enabled or not, without the need to change setAutoCommit for every chunjun-connector-module

fengjian1129 pushed a commit to fengjian1129/chunjun that referenced this issue Aug 12, 2024
…ction are not Not supporting transactions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant