Skip to content

cookcocck/spark-clickhouse-connector

 
 

Repository files navigation

Spark ClickHouse Connector

Maven Central License

Build on Apache Spark DataSourceV2 API.

Usage

Goto Home Page to learn how to use this connector.

Requirements

  • Java 8 or 11
  • Scala 2.12 or 2.13
  • Apache Spark 3.2.x
  • ClickHouse 21.1.2.15 or newer

Notes:

  1. Currently, only support gRPC protocol, and ClickHouse support gRPC since v21.1.2.15-stable, but we only do test on v22.3.3.44-lts.

Build

./gradlew clean build -x test

Test

The project leverage Testcontainers and Docker Compose to do integration tests, you should install Docker Desktop and Docker Compose before running test, and check more details on Testcontainers Document if you'd like to run test with remote Docker daemon.

./gradlew clean test

Run single test.

./gradlew test --tests=ConvertDistToLocalWriteSuite

About

Spark ClickHouse Connector build on DataSourceV2 API and gRPC protocol.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 74.5%
  • Java 11.5%
  • ANTLR 9.8%
  • Dockerfile 2.6%
  • Shell 1.6%