Development Guidelines

Unit Testing

Unit tests are run by Maven during the build.

To speed up the build, you can skip them by passing -DskipTests. .. code-block:

$ cd arrow/java
$ mvn \ -Parrow-jni \
    -Darrow.c.jni.dist.dir=../java-dist/lib -Parrow-c-data \
    clean install

Performance Testing

The arrow-performance module contains benchmarks.

Let’s configure our environment to run performance tests:

In case you need to see your performance tests on the UI, then, configure (optional):

Lets execute benchmark tests:

$ cd benchmarks
$ conbench java-micro --help
$ conbench java-micro
    --java-home=<absolute path to your java home>
    --src=<absolute path to your arrow project>
Benchmark                              Mode  Cnt       Score   Error  Units
AvroAdapterBenchmarks.testAvroToArrow  avgt       725545.783          ns/op
Time to POST http://localhost:5000/api/login/ 0.14911699295043945
Time to POST http://localhost:5000/api/benchmarks/ 0.06116318702697754

Then go to: to see reports:

UI Home:


UI Runs:


UI Benchmark:


Code Style

Code style is enforced with Checkstyle. The configuration is located at checkstyle. You can also just check the style without building the project. This checks the code style of all source code under the current directory or from within an individual module.

$ mvn checkstyle:check