Skip to content

Conversation

@HedgehogCode
Copy link
Contributor

The package org.apache.arrow.util was present in the artifacts arrow-vector and arrow-vector-memory-core. Split packages are a problem for OSGI and the Java 9+ modules (JPMS).

This PR moves the classes AutoClosables and Collections2 to arrow-memory-core because they are generally useful and have no coupling with arrow-vector.
The class DataSizeRoundingUtil is tighter coupled with arrow-vector and is therefore moved to the package org.apache.arrow.vector.util.

@HedgehogCode HedgehogCode changed the title ARROW-10333: Get rid of org.apache.arrow.util in vector [Java] ARROW-10333: Get rid of org.apache.arrow.util in vector Oct 17, 2020
@HedgehogCode HedgehogCode changed the title [Java] ARROW-10333: Get rid of org.apache.arrow.util in vector ARROW-10333: [Java] Get rid of org.apache.arrow.util in vector Oct 17, 2020
@github-actions
Copy link

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be placed after the next line, to maintain the import order

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. I changed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to import it only once

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that. Must have happened during the rebasing of my local changes. It's finally fixed now.

The package org.apache.arrow.util was present in the artifacts
arrow-vector and arrow-vector-memory-core. Split packages are a problem
for OSGI and the Java 9+ modules (JPMS).
This commit moves the classes AutoClosables and Collections2 to
arrow-memory-core because they are generally useful and have no coupling
with arrow-vector.
The class DataSizeRoundingUtil is tighter coupled with arrow-vector and
is therefore moved to the package org.apache.arrow.vector.util.
Copy link
Contributor

@liyafan82 liyafan82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will merge soon if there are no more comments.

@liyafan82
Copy link
Contributor

Merging. Thanks for the patch @HedgehogCode

@liyafan82 liyafan82 closed this in b3992ea Oct 23, 2020
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
The package `org.apache.arrow.util` was present in the artifacts arrow-vector and arrow-vector-memory-core. Split packages are a problem for OSGI and the Java 9+ modules (JPMS).

This PR moves the classes `AutoClosables` and `Collections2` to arrow-memory-core because they are generally useful and have no coupling with arrow-vector.
The class `DataSizeRoundingUtil` is tighter coupled with arrow-vector and is therefore moved to the package `org.apache.arrow.vector.util`.

Closes apache#8483 from HedgehogCode/fix-split-packages

Authored-by: Benjamin Wilhelm <benjamin.wilhelm@knime.com>
Signed-off-by: liyafan82 <fan_li_ya@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants