Skip to content

Implement zero-copy FFI transfer of batches from JVM to Native #2171

@andygrove

Description

@andygrove

What is the problem the feature request solves?

Comet doesn't currently follow Arrow best practice when transferring batches from JVM to native code. Ownership is retained by the JVM after batches have been made available in FFI, requiring a copy to be made on the native side.

It would be better to pass ownership of batches to native rather than make copies.

This design was necessary originally due to the use of mutable Parquet buffers in the native_comet Parquet scan.

Describe the potential solution

Once #2152 is implemented, and once we have removed the native_comet scan (#2177) and all uses of mutable Parquet buffers, we should be able to implement zero-copy FFI.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions