@@ -14,17 +14,18 @@ The example shows:
1414 into another table by streaming the same ` VectorSchemaRoot ` straight back to
1515 ` client.insert(...) ` .
1616
17- Unlike the other examples in this repository, this one is built with ** Gradle**
18- (JDK 17 toolchain) and is not part of the Maven multi-module build.
17+ Like the other examples in this repository, this one is built with ** Maven**
18+ (targeting JDK 17). It is a standalone project and is not part of the Maven
19+ multi-module build.
1920
2021## Requirements
2122
22- - JDK 17 or newer (the Gradle toolchain will fetch one if it is missing) .
23+ - JDK 17 or newer.
2324- A running ClickHouse server reachable from the machine running the example.
2425
2526Apache Arrow needs access to direct memory and a few internal JDK APIs. The
26- required ` --add-opens ` flags are already wired into ` applicationDefaultJvmArgs `
27- in ` build.gradle.kts ` , so running the example through Gradle just works:
27+ required ` --add-opens ` flags are wired into ` .mvn/jvm.config ` , so running the
28+ example through ` mvn ... exec:java ` (which runs in the Maven JVM) just works:
2829
2930``` text
3031--add-opens=java.base/java.nio=ALL-UNNAMED
@@ -39,7 +40,7 @@ If you run the produced jar manually, pass these flags to the JVM yourself.
3940From this directory:
4041
4142``` shell
42- ./gradlew run
43+ mvn compile exec:java
4344```
4445
4546Connection properties can be supplied as system properties:
@@ -52,7 +53,7 @@ Connection properties can be supplied as system properties:
5253Example with custom connection properties:
5354
5455``` shell
55- ./gradlew run \
56+ mvn compile exec:java \
5657 -DchEndpoint=http://localhost:8123 \
5758 -DchUser=default \
5859 -DchPassword= \
@@ -62,7 +63,7 @@ Example with custom connection properties:
6263To see the wire-level data flow, raise the SLF4J log level:
6364
6465``` shell
65- ./gradlew run -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG
66+ mvn compile exec:java -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG
6667```
6768
6869## Executable Example
0 commit comments