-
Notifications
You must be signed in to change notification settings - Fork 556
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
Experimental transaction support #1008
Conversation
@zhicwu this does not work in my case, regardless of whether I specify This is my write statement:
I am still getting the following errors and transaction ends up being aborted and rolled back:
|
I got this working in Scala Spark, I assume the approach is similar for PySpark: df.write
.format("jdbc")
.option("driver", "com.clickhouse.jdbc.ClickHouseDriver")
.option("transactionSupport", true)
.option("url", "jdbc:clickhouse:https://<CLICKHOUSE_HOST>:8443")
.option("dbtable", "df_test")
.option("user", "default")
.option("password", "<CLICKHOUSE_PASSWORD>")
.mode("append")
.save() Note that the Note that for transactions to work, the top level setting <allow_experimental_transactions>1</allow_experimental_transactions> must be configured in your ClickHouse server In addition, experimental transactions require that your ClickHouse server have a zookeeper connection, and they do not work on ReplicatedMergeTrees. Accordingly, for the time being we don't recommend enabling them for production workloads. |
Транзакции пока не поддерживаются ClickHouse. Ref: ClickHouse/clickhouse-java#975 Ref: ClickHouse/clickhouse-java#1008 (comment)
Транзакции пока не поддерживаются ClickHouse. Ref: ClickHouse/clickhouse-java#975 Ref: ClickHouse/clickhouse-java#1008 (comment)
No description provided.