Skip to content

[Java] Add configurable IPC compression for Arrow streams#154

Open
danilonajkov-db wants to merge 7 commits intomainfrom
java-compression
Open

[Java] Add configurable IPC compression for Arrow streams#154
danilonajkov-db wants to merge 7 commits intomainfrom
java-compression

Conversation

@danilonajkov-db
Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

  • Adds IPCCompressionType enum (NONE, LZ4_FRAME, ZSTD) to configure Arrow IPC compression
  • Adds ipcCompression field to ArrowStreamConfigurationOptions with builder support
  • Updates Rust JNI bridge to read the Java enum and map it to arrow_ipc::CompressionType

How is this tested?

Added integration tests + ran the sample client with all kinds of compressions

@danilonajkov-db danilonajkov-db changed the title changes [Java] Add configurable IPC compression for Arrow streams Mar 23, 2026
@danilonajkov-db danilonajkov-db marked this pull request as ready for review March 23, 2026 10:17
Copy link
Copy Markdown
Contributor

@teodordelibasic-db teodordelibasic-db left a comment

Choose a reason for hiding this comment

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

Looks good, small nit regarding Java-Rust mapping of enum.

)?
.l()?;
let compression_ordinal = env
.call_method(&compression_enum, "ordinal", "()I", &[])?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems using name instead of ordinal here is better. Using ordinal would mean changing the order only in Java enum would result in silent breaking of mapping, while with name order isn't important. Thoughts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree, changed it to name

@teodordelibasic-db
Copy link
Copy Markdown
Contributor

You can try restarting the CI somehow, either through GitHub UI/CLI or by pushing a squashed/empty commit.

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.

3 participants