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

Adds documentation for ClickHouse support #33779

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

linghengqian
Copy link
Member

@linghengqian linghengqian commented Nov 24, 2024

For #29052.

Changes proposed in this pull request:

  • Adds documentation for ClickHouse support.
  • TL;DR, no developer would like to see a long discussion about ClickHouse in the documentation of GraalVM Native Image integration. It is necessary to separate the independent documentation of ClickHouse.
  • Add additional instructions for org.testcontainers.jdbc.ContainerDatabaseDriver#killContainers() in the testcontainers document. Some downstream projects have enabled the parallel execution feature of unit tests in Junit5, but this feature is basically useless for testcontainers-java because the concurrency capability of the Client/Server architecture of Docker Engine may not be that strong.
  • Update docs for hiveserver2 integration. Since Upgrade calcite version to 1.38.0 and update all license info in LICENSE file #33279 was merged, the org.apache.commons:commons-text dependency used by shardingsphere jdbc started to conflict with https://github.com/apache/hive/blob/rel/release-4.0.1/jdbc/pom.xml .

Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

Comment on lines +178 to +182
Because `com.clickhouse.jdbc.ClickHouseConnection#prepareStatement(String, int)` of `com.clickhouse:clickhouse-jdbc:0.6.3:http`
Maven module intentionally throws an exception when `autoGeneratedKeys` is `java.sql.Statement.RETURN_GENERATED_KEYS`,
to prevent ShardingSphere from proxying `com.clickhouse.jdbc.internal.ClickHouseConnectionImpl` normally,
therefore, if users need to obtain the Key generated by ShardingSphere from the JDBC business code,
they need to set `autoGeneratedKeys` to `java.sql.Statement.NO_GENERATED_KEYS`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@strongduanmu strongduanmu merged commit 2973418 into apache:master Nov 25, 2024
148 checks passed
@linghengqian linghengqian deleted the clickhouse-graalvm branch November 25, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants