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

New Java client and gRPC support #736

Merged
merged 3 commits into from Oct 7, 2021
Merged

Conversation

zhicwu
Copy link
Contributor

@zhicwu zhicwu commented Oct 6, 2021

This pull request is mainly for adding experimental new Java client as well as gRPC support. Please be aware that APIs are subject to change without any notice, until 0.4.0.

Key Changes

  • adaptive integration test and categorized test cases(under unit or integration group)
  • JPMS support(incomplete) along with multi-release jar file and JDK 17 support
  • use com.clickhouse as package name and maven group id
    Note: clickhouse-jdbc still uses ru.yandex as before, but it will be changed starting from 0.4.0.
  • more features being added into clickhouse-client module:
    • async execution(by default)
    • better support of RowBinary format, and more data types like Date32, Geo types, and nested data types etc.
    • fluent API with builder classes
    • named parameter support
    • stream API via ClickHouseResponse.recordStream()
  • experimental gRPC support in clickhouse-grpc-client
  • renamed clickhouse-native-client to clickhouse-tcp-client (still empty there :p)

Known Issues about the gRPC client

TODOs - will address in separate PRs

  • clickhouse-client
    • re-write ClickHouseCluster
    • sort out exceptions for better error handling
    • primitive array support
  • clickhouse-grpc-client
    • custom registry for compression/decompression
    • ssl/tls support
    • support extremes
    • shaded jar with only netty(for building native image later)
  • clickhouse-jdbc
    • change driver to com.clickhouse.jdbc.ClickHouseDriver but keep the old one as sub-class
    • refactor to build on top of clickhouse-client
    • switch to RowBinary format

@zhicwu
Copy link
Contributor Author

zhicwu commented Oct 7, 2021

Update:
Above two issues were fixed in #737.

@zhicwu
Copy link
Contributor Author

zhicwu commented Oct 7, 2021

JDBC driver stays the same(except changes for test cases) so it's not risky to merge this large PR. Besides, this will unblock future development work for 0.3.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment