MINOR: Bump org.codehaus.mojo:versions-maven-plugin from 2.20.0 to 2.21.0 (#1029) Bumps [org.codehaus.mojo:versions-maven-plugin](https://github.com/mojohaus/versions) from 2.20.0 to 2.21.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mojohaus/versions/releases">org.codehaus.mojo:versions-maven-plugin's releases</a>.</em></p> <blockquote> <h2>2.21.0</h2> <!-- raw HTML omitted --> <h2>🚀 New features and improvements</h2> <ul> <li>Add versions.skip parameter to skip plugin execution (<a href="https://redirect.github.com/mojohaus/versions/pull/1328">#1328</a>) <a href="https://github.com/jorgheymans"><code>@jorgheymans</code></a></li> </ul> <h2>🐛 Bug Fixes</h2> <ul> <li><a href="https://redirect.github.com/mojohaus/versions/issues/1331">#1331</a>: Fix NPE in restrictionForUnchangedSegment if actual version is null (<a href="https://redirect.github.com/mojohaus/versions/pull/1332">#1332</a>) <a href="https://github.com/andrzejj0"><code>@andrzejj0</code></a></li> <li><a href="https://redirect.github.com/mojohaus/versions/issues/1310">#1310</a>: Corrected UseDepVersionMojo + handling a similar case in SetMojo, SetScmTagMojo, UpdateChildModulesMojo (<a href="https://redirect.github.com/mojohaus/versions/pull/1322">#1322</a>) <a href="https://github.com/andrzejj0"><code>@andrzejj0</code></a></li> <li>UseDepVersionMoto should process all projects on the project list (<a href="https://redirect.github.com/mojohaus/versions/pull/1320">#1320</a>) <a href="https://github.com/andrzejj0"><code>@andrzejj0</code></a></li> <li>Fixed <a href="https://redirect.github.com/mojohaus/versions/issues/1317">#1317</a>: Regression coming from ArtifactVersions::filter when currentVersion is null and ignoredVersions is not null (<a href="https://redirect.github.com/mojohaus/versions/pull/1319">#1319</a>) <a href="https://github.com/andrzejj0"><code>@andrzejj0</code></a></li> </ul> <h2>📝 Documentation updates</h2> <ul> <li>Fix README typos in Contributing section (<a href="https://redirect.github.com/mojohaus/versions/pull/1337">#1337</a>) <a href="https://github.com/kranthipoturaju"><code>@kranthipoturaju</code></a></li> <li><a href="https://redirect.github.com/mojohaus/versions/issues/1323">#1323</a>: Documentation (<a href="https://redirect.github.com/mojohaus/versions/pull/1324">#1324</a>) <a href="https://github.com/andrzejj0"><code>@andrzejj0</code></a></li> </ul> <h2>📦 Dependency updates</h2> <ul> <li>Bump byteBuddyVersion from 1.18.3 to 1.18.4 (<a href="https://redirect.github.com/mojohaus/versions/pull/1335">#1335</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump org.apache.maven.plugin-testing:maven-plugin-testing-harness from 3.4.0 to 3.5.0 (<a href="https://redirect.github.com/mojohaus/versions/pull/1333">#1333</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump org.codehaus.plexus:plexus-archiver from 4.10.4 to 4.11.0 (<a href="https://redirect.github.com/mojohaus/versions/pull/1334">#1334</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump org.codehaus.mojo:mojo-parent from 94 to 95 (<a href="https://redirect.github.com/mojohaus/versions/pull/1330">#1330</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump byteBuddyVersion from 1.18.2 to 1.18.3 (<a href="https://redirect.github.com/mojohaus/versions/pull/1329">#1329</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump org.apache.commons:commons-text from 1.14.0 to 1.15.0 (<a href="https://redirect.github.com/mojohaus/versions/pull/1325">#1325</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> <li>Bump byteBuddyVersion from 1.18.1 to 1.18.2 (<a href="https://redirect.github.com/mojohaus/versions/pull/1318">#1318</a>) @<a href="https://github.com/apps/dependabot">dependabot[bot]</a></li> </ul> <h2>2.20.1</h2> <!-- raw HTML omitted --> <h2>🐛 Bug Fixes</h2> <ul> <li>Fixed <a href="https://redirect.github.com/mojohaus/versions/issues/1313">#1313</a>: Do not show existing version as update (<a href="https://redirect.github.com/mojohaus/versions/pull/1315">#1315</a>) <a href="https://github.com/andrzejj0"><code>@andrzejj0</code></a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mojohaus/versions/commit/1cdedea53c3c29a34494fc198db8626ea64942ef"><code>1cdedea</code></a> [maven-release-plugin] prepare release 2.21.0</li> <li><a href="https://github.com/mojohaus/versions/commit/b94795745ed51d84935742cd15e8b42709f8cb8c"><code>b947957</code></a> Fix README typos in Contributing section</li> <li><a href="https://github.com/mojohaus/versions/commit/b85c0a8f41240dc012d0bde7833963cdfff1c76a"><code>b85c0a8</code></a> Bump project version to 2.21.0-SNAPSHOT</li> <li><a href="https://github.com/mojohaus/versions/commit/7ae37673007d7d27d448a2dee92f58f122622118"><code>7ae3767</code></a> Bump byteBuddyVersion from 1.18.3 to 1.18.4 (<a href="https://redirect.github.com/mojohaus/versions/issues/1335">#1335</a>)</li> <li><a href="https://github.com/mojohaus/versions/commit/38afa9f7503d05143342bace5a3cc126ea179adc"><code>38afa9f</code></a> Bump org.apache.maven.plugin-testing:maven-plugin-testing-harness</li> <li><a href="https://github.com/mojohaus/versions/commit/39af6a23525e853a03b58c7a3d23319232e1c707"><code>39af6a2</code></a> Bump org.codehaus.plexus:plexus-archiver from 4.10.4 to 4.11.0</li> <li><a href="https://github.com/mojohaus/versions/commit/f51b9d59d1dea3128956492281b013831cfc8143"><code>f51b9d5</code></a> <a href="https://redirect.github.com/mojohaus/versions/issues/1331">#1331</a>: Fix NPE in restrictionForUnchangedSegment if actual version is null (#...</li> <li><a href="https://github.com/mojohaus/versions/commit/8d209b3404eb7497c15c257d5083bcee1f4c4de2"><code>8d209b3</code></a> Bump org.codehaus.mojo:mojo-parent from 94 to 95 (<a href="https://redirect.github.com/mojohaus/versions/issues/1330">#1330</a>)</li> <li><a href="https://github.com/mojohaus/versions/commit/4929d48b9e4599e479be9044ccfc40598b0177f6"><code>4929d48</code></a> Bump byteBuddyVersion from 1.18.2 to 1.18.3 (<a href="https://redirect.github.com/mojohaus/versions/issues/1329">#1329</a>)</li> <li><a href="https://github.com/mojohaus/versions/commit/cb84d01dac8f9a82ddf5842cad38b6dedadecee6"><code>cb84d01</code></a> Add versions.skip parameter to skip plugin execution (<a href="https://redirect.github.com/mojohaus/versions/issues/1328">#1328</a>)</li> <li>Additional commits viewable in <a href="https://github.com/mojohaus/versions/compare/2.20.0...2.21.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The following guides explain the fundamental data structures used in the Java implementation of Apache Arrow.
Generated javadoc documentation is available here.
Refer to Building Apache Arrow for documentation of environment setup and build instructions.
Arrow uses Google's Flatbuffers to transport metadata. The java version of the library requires the generated flatbuffer classes can only be used with the same version that generated them. Arrow packages a version of the arrow-vector module that shades flatbuffers and arrow-format into a single JAR. Using the classifier “shade-format-flatbuffers” in your pom.xml will make use of this JAR, you can then exclude/resolve the original dependency to a version of your choosing.
$ flatc --version flatc version 25.1.24 $ grep "dep.fbs.version" pom.xml <dep.fbs.version>25.1.24</dep.fbs.version>
cd $ARROW_HOME # remove the existing files rm -rf format/src # regenerate from the .fbs files flatc --java -o format/src/main/java arrow-format/*.fbs # prepend license header mvn spotless:apply -pl :arrow-format
There are several system/environmental variables that users can configure. These trade off safety (they turn off checking) for speed. Typically they are only used in production settings after the code has been thoroughly tested without using them.
Bounds Checking for memory accesses: Bounds checking is on by default. You can disable it by setting either the system property(arrow.enable_unsafe_memory_access) or the environmental variable (ARROW_ENABLE_UNSAFE_MEMORY_ACCESS) to true. When both the system property and the environmental variable are set, the system property takes precedence.
null checking for gets: ValueVector get methods (not getObject) methods by default verify the slot is not null. You can disable it by setting either the system property(arrow.enable_null_check_for_get) or the environmental variable (ARROW_ENABLE_NULL_CHECK_FOR_GET) to false. When both the system property and the environmental variable are set, the system property takes precedence.
-Dio.netty.tryReflectionSetAccessible=true should be set. This fixes java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available. thrown by Netty.StructVector enable -Darrow.struct.conflict.policy=CONFLICT_APPEND. Duplicate fields are ignored (CONFLICT_REPLACE) by default and overwritten. To support different policies for conflicting or duplicate fields set this JVM flag or use the correct static constructor methods for StructVectors.Arrow Java follows the Google Java Style Guide with the following differences:
NoFinalizer, OverloadMethodsDeclarationOrder, and VariableDeclarationUsageDistance due to the existing code base. These rules should be followed when possible.Refer to checkstyle.xml for rule specifics.
When running tests, Arrow Java uses the Logback logger with SLF4J. By default, it uses the logback.xml present in the corresponding module's src/test/resources directory, which has the default log level set to INFO. Arrow Java can be built with an alternate logback configuration file using the following command run in the project root directory:
mvn -Dlogback.configurationFile=file:<path-of-logback-file>
See Logback Configuration for more details.
Integration tests which require more time or more memory can be run by activating the integration-tests profile. This activates the Maven Failsafe plugin and any class prefixed with IT will be run during the testing phase. The integration tests currently require a larger amount of memory (>4GB) and time to complete. To activate the profile:
mvn -Pintegration-tests <rest of mvn arguments>