https://github.com/airen3339/clickhouse-java

https://github.com/airen3339/clickhouse-java

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: airen3339
  • License: apache-2.0
  • Language: Java
  • Default Branch: main
  • Size: 3.33 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme Changelog Contributing License

README.md

ClickHouse Java Libraries

GitHub release (latest SemVer including pre-releases) GitHub release (by tag) Coverage Sonatype Nexus (Snapshots) GitHub milestone

Java libraries for connecting to ClickHouse and processing data in various formats. Java client is async, lightweight, and low-overhead library for ClickHouse; while JDBC and R2DBC drivers are built on top of the Java client with more dependencies and features. Java 8 or higher is required to use the libraries. In addition, please use ClickHouse 20.7+ or any of active releases.

image

Features

| Category | Feature | Supported | Remark | | ----------------- | ----------------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | API | JDBC | :whitecheckmark: | | | | R2DBC | :whitecheckmark: | supported since 0.4.0 | | Protocol | HTTP | :whitecheckmark: | recommended, defaults to java.net.HttpURLConnection and it can be changed to java.net.http.HttpClient(unstable) or Apache HTTP Client 5. Note that the latter was added in 0.4.0 to support custom socket options. | | | gRPC | :whitecheckmark: | :warning: experimental, works with 22.3+, known to has issue with lz4 compression and may cause high memory usage on server | | | TCP/Native | :whitecheckmark: | clickhouse-cli-client(wrapper of ClickHouse native command-line client) was added in 0.3.2-patch10, clickhouse-tcp-client will be available in 0.5 | | | Local/File | :x: | clickhouse-cli-client will be enhanced to support clickhouse-local | | Compatibility | Server < 20.7 | :x: | use 0.3.1-patch(or 0.2.6 if you're stuck with JDK 7) | | | Server >= 20.7 | :whitecheckmark: | use 0.3.2 or above. All active releases are supported. | | Compression | lz4 | :whitecheckmark: | default | | | zstd | :whitecheckmark: | supported since 0.4.0, works with ClickHouse 22.10+ | | Data Format | RowBinary | :whitecheckmark: | RowBinaryWithNamesAndTypes for query and RowBinary for insertion | | | TabSeparated | :whitecheckmark: | :warning: does not support as many data types as RowBinary | | Data Type | AggregateFunction | :x: | :warning: limited to groupBitmap; 64bit bitmap was NOT working properly before 0.4.1 | | | Array(*) | :whitecheckmark: | | | | Bool | :whitecheckmark: | | | | Date* | :whitecheckmark: | | | | DateTime* | :whitecheckmark: | | | | Decimal* | :whitecheckmark: | SET output_format_decimal_trailing_zeros=1 in 21.9+ for consistency | | | Enum* | :whitecheckmark: | can be treated as both string and integer | | | Geo Types | :whitecheckmark: | Point, Ring, Polygon, and MultiPolygon | | | Int*, UInt* | :whitecheckmark: | UInt64 is mapped to long | | | IPv* | :whitecheckmark: | | | | Map(*) | :whitecheckmark: | | | | Nested(*) | :whitecheckmark: | :warning: broken before 0.4.1 | | | Object('JSON') | :whitecheckmark: | supported since 0.3.2-patch8 | | | SimpleAggregateFunction | :whitecheckmark: | | | | *String | :whitecheckmark: | :warning: requires use_binary_string=true for binary string support since v0.4.0 | | | Tuple(*) | :whitecheckmark: | | | | UUID | :whitecheckmark: | | | High Availability | Load Balancing | :whitecheckmark: | supported since 0.3.2-patch10 | | | Failover | :whitecheckmark: | supported since 0.3.2-patch10 | | Transaction | Transaction | :whitecheckmark: | supported since 0.3.2-patch11, use ClickHouse 22.7+ for native implicit transaction support | | | Savepoint | :x: | | | | XAConnection | :x: | | | Misc. | Implicit Type Conversion | :whitecheckmark: | String/number to Date/Time/Timestamp and more | | | Centralized Configuration | :whitecheckmark: | supported since 0.4.2, custom server setting custom_jdbc_config for all connected JDBC clients |

Usage

The library can be downloaded from both Github Releases and Maven Central. Development snapshots(aka. nightly build) are available on Sonatype OSSRH.

xml <repositories> <repository> <id>ossrh</id> <name>Sonatype OSSRH</name> <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> </repository> </repositories>

Java Client

See the client docs on the ClickHouse website.

JDBC Driver

See the jdbc driver docs on the ClickHouse website.

Contributing

Check out our contributing guide.

Owner

  • Login: airen3339
  • Kind: user

GitHub Events

Total
Last Year

Dependencies

.github/workflows/analysis.yml actions
  • actions/cache v2 composite
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
.github/workflows/build.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • actions/upload-artifact v2 composite
  • graalvm/setup-graalvm v1 composite
.github/workflows/nightly.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • samuelmeuli/action-maven-publish v1 composite
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • samuelmeuli/action-maven-publish v1 composite
  • zhicwu/action-automatic-releases latest composite
.github/workflows/third_party_libs.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • zhicwu/action-maven-publish master composite
clickhouse-benchmark/pom.xml maven
  • org.openjdk.jmh:jmh-generator-annprocess 1.36 provided
  • cc.blynk.clickhouse:clickhouse4j 1.4.4
  • com.aayushatharva.brotli4j:brotli4j
  • com.aayushatharva.brotli4j:native-linux-x86_64
  • com.aayushatharva.brotli4j:native-osx-aarch64
  • com.aayushatharva.brotli4j:native-osx-x86_64
  • com.aayushatharva.brotli4j:native-windows-x86_64
  • com.clickhouse:clickhouse-jdbc ${revision}
  • com.github.housepower:clickhouse-native-jdbc-shaded 2.6.5
  • com.github.luben:zstd-jni
  • com.mysql:mysql-connector-j
  • org.jctools:jctools-core
  • org.lz4:lz4-java
  • org.mariadb.jdbc:mariadb-java-client
  • org.openjdk.jmh:jmh-core 1.36
  • org.postgresql:postgresql
  • org.testcontainers:testcontainers
  • org.tukaani:xz
  • ru.yandex.clickhouse:clickhouse-jdbc 0.3.1-patch
clickhouse-cli-client/pom.xml maven
  • org.apache.tomcat:annotations-api provided
  • com.clickhouse:clickhouse-client ${revision}
  • org.lz4:lz4-pure-java
  • com.clickhouse:clickhouse-client ${revision} test
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
clickhouse-client/pom.xml maven
  • com.clickhouse:clickhouse-data ${revision}
  • com.clickhouse:org.roaringbitmap
  • com.google.code.gson:gson
  • dnsjava:dnsjava
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
clickhouse-data/pom.xml maven
  • com.clickhouse:org.roaringbitmap provided
  • com.aayushatharva.brotli4j:brotli4j
  • com.github.ben-manes.caffeine:caffeine
  • com.github.luben:zstd-jni
  • com.google.code.gson:gson
  • org.apache.arrow:arrow-memory
  • org.apache.arrow:arrow-vector
  • org.apache.avro:avro
  • org.brotli:dec
  • org.jctools:jctools-core
  • org.lz4:lz4-java
  • org.msgpack:msgpack-core
  • org.slf4j:slf4j-api
  • org.tukaani:xz
  • org.xerial.snappy:snappy-java
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
clickhouse-grpc-client/pom.xml maven
  • org.apache.tomcat:annotations-api provided
  • com.aayushatharva.brotli4j:brotli4j
  • com.aayushatharva.brotli4j:native-linux-x86_64
  • com.aayushatharva.brotli4j:native-osx-aarch64
  • com.aayushatharva.brotli4j:native-osx-x86_64
  • com.aayushatharva.brotli4j:native-windows-x86_64
  • com.clickhouse:clickhouse-client ${revision}
  • com.clickhouse:io.grpc
  • com.github.luben:zstd-jni
  • com.google.code.gson:gson
  • io.grpc:grpc-protobuf
  • org.apache.commons:commons-compress
  • org.tukaani:xz
  • org.xerial.snappy:snappy-java
  • com.clickhouse:clickhouse-client ${revision} test
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
clickhouse-http-client/pom.xml maven
  • org.apache.tomcat:annotations-api provided
  • com.clickhouse:clickhouse-client ${revision}
  • com.github.luben:zstd-jni
  • com.google.code.gson:gson
  • org.apache.commons:commons-compress
  • org.apache.httpcomponents.client5:httpclient5
  • org.apache.httpcomponents.core5:httpcore5
  • org.brotli:dec
  • org.lz4:lz4-pure-java
  • org.tukaani:xz
  • com.clickhouse:clickhouse-client ${revision} test
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
clickhouse-jdbc/pom.xml maven
  • com.clickhouse:io.grpc provided
  • com.clickhouse:org.apache.commons.compress provided
  • com.clickhouse:org.roaringbitmap provided
  • com.github.luben:zstd-jni provided
  • org.lz4:lz4-java provided
  • com.clickhouse:clickhouse-cli-client ${revision}
  • com.clickhouse:clickhouse-grpc-client ${revision}
  • com.clickhouse:clickhouse-http-client ${revision}
  • com.google.code.gson:gson
  • io.grpc:grpc-api
  • io.grpc:grpc-context
  • io.grpc:grpc-core
  • io.grpc:grpc-netty-shaded
  • io.grpc:grpc-okhttp
  • io.grpc:grpc-protobuf
  • io.grpc:grpc-stub
  • io.opencensus:opencensus-contrib-grpc-metrics
  • io.opencensus:opencensus-impl
  • org.apache.commons:commons-compress
  • org.apache.httpcomponents.client5:httpclient5
  • org.apache.httpcomponents.core5:httpcore5
  • org.lz4:lz4-pure-java
  • com.clickhouse:clickhouse-client ${revision} test
  • com.mysql:mysql-connector-j test
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
clickhouse-r2dbc/pom.xml maven
  • com.clickhouse:org.roaringbitmap provided
  • com.clickhouse:clickhouse-cli-client ${revision}
  • com.clickhouse:clickhouse-grpc-client ${revision}
  • com.clickhouse:clickhouse-http-client ${revision}
  • io.projectreactor:reactor-core 3.4.23
  • io.r2dbc:r2dbc-spi 1.0.0.RELEASE
  • org.lz4:lz4-java
  • com.clickhouse:clickhouse-client ${revision} test
  • com.clickhouse:clickhouse-jdbc ${revision} test
  • com.zaxxer:HikariCP 4.0.3 test
  • io.r2dbc:r2dbc-spi-test 1.0.0.RELEASE test
  • org.junit.jupiter:junit-jupiter-api 5.9.1 test
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
clickhouse-tcp-client/pom.xml maven
  • com.clickhouse:clickhouse-client ${revision}
  • com.clickhouse:clickhouse-client ${revision} test
  • dnsjava:dnsjava test
  • org.slf4j:slf4j-simple test
  • org.testcontainers:testcontainers test
  • org.testng:testng test
examples/client/pom.xml maven
  • com.clickhouse:clickhouse-http-client 0.4.2
examples/jdbc/pom.xml maven
  • com.clickhouse:clickhouse-jdbc 0.4.2
  • com.zaxxer:HikariCP 4.0.3
examples/r2dbc/clickhouse-r2dbc-spring-webflux-sample/pom.xml maven
  • com.clickhouse:clickhouse-r2dbc 0.4.2
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.13.3
  • org.slf4j:slf4j-api 2.0.2
  • org.slf4j:slf4j-log4j12 2.0.2
  • org.springframework.boot:spring-boot-starter-webflux 2.7.1
examples/r2dbc/pom.xml maven
pom.xml maven
third-party-libraries/io.grpc/pom.xml maven
  • io.grpc:grpc-api
  • io.grpc:grpc-context
  • io.grpc:grpc-core
  • io.grpc:grpc-netty-shaded
  • io.grpc:grpc-okhttp
  • io.grpc:grpc-protobuf
  • io.grpc:grpc-stub
  • io.opencensus:opencensus-api
  • io.opencensus:opencensus-contrib-grpc-metrics
  • io.opencensus:opencensus-impl
third-party-libraries/org.apache.commons.compress/pom.xml maven
  • org.apache.commons:commons-compress
third-party-libraries/org.congocc/pom.xml maven
third-party-libraries/org.roaringbitmap/pom.xml maven
  • org.roaringbitmap:RoaringBitmap
third-party-libraries/pom.xml maven