Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support to clickhouse JDBC V2#10280

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@thiagohora
Copy link
Contributor

Description

This pull request adds support forClickHouse JDBC v2 driver to the Testcontainers ClickHouse module.

Context

  • The newer ClickHouse JDBC v2 driver (com.clickhouse.jdbc.Driver andcom.clickhouse.jdbc.ClickHouseDriver) introduces enhanced functionality and compatibility with ClickHouse server versions >= 20.7.
  • Previously, the Testcontainers ClickHouse module only supported the legacy Yandex driver (ru.yandex.clickhouse.ClickHouseDriver), which is now deprecated.
  • With this PR, users can seamlessly use either the legacy or the v2 driver, depending on the ClickHouse image/tag in use.

Changes

  • UpdatedClickHouseContainer to detect and load the correct driver class (v1 or v2) depending on the server version and classpath.
  • Added tests for the v2 driver.
  • Improved documentation and example usage for the new driver.
  • Minor code and config cleanups to ensure forward compatibility.

Why is this useful?

  • Enables Testcontainers users to test applications using the official, actively developed ClickHouse JDBC driver (v2).
  • Eases migration from the deprecated Yandex driver to the official driver.
  • Provides compatibility with recent ClickHouse server releases and features.

Issues

Fixes#10279

@thiagohorathiagohora requested a review froma teamMay 28, 2025 12:26
@thiagohorathiagohora changed the titleThiagohora/#10279 add support to clickhouse jdbc v2#10279 Add support to clickhouse JDBC V2May 28, 2025
Copy link
Member

@eddumelendezeddumelendez left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution,@thiagohora. I've left some comments.

eddumelendez
eddumelendez previously approved these changesMay 29, 2025
@eddumelendezeddumelendez added this to thenext milestoneMay 29, 2025
@eddumelendezeddumelendez changed the title#10279 Add support to clickhouse JDBC V2Add support to clickhouse JDBC V2May 29, 2025
@eddumelendezeddumelendez merged commitdf3ed30 intotestcontainers:mainMay 29, 2025
106 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution,@thiagohora

thiagohora reacted with heart emoji

@thiagohorathiagohora deleted the thiagohora/#10279_add_support_to_clickhouse_jdbc_v2 branchMay 29, 2025 19:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@eddumelendezeddumelendezeddumelendez left review comments

Assignees

No one assigned

Projects

None yet

Milestone

1.21.1

Development

Successfully merging this pull request may close these issues.

[Feature]: Support Clickhouse JDBC-V2 driver

2 participants

@thiagohora@eddumelendez

[8]ページ先頭

©2009-2025 Movatter.jp