Skip to content

Conversation

@CurtHagenlocher
Copy link
Contributor

This PR partly addresses #111 by allowing C Data Interface export of buffers backed by ReadOnlyMemory rather than an IMemoryOwner. This is useful if you want to export data that has been read from an IPC file or stream for example. Previously you would need to first copy all buffers for this to work.

Because this is an experimental feature and potentially risky, it must currently be enabled by setting the global static CArrowArrayExporter.EnableManagedMemoryExport to true.

This change was originally submitted by @adamreeve as apache/arrow#40992. My only contribution is disabling the feature by default.

@CurtHagenlocher
Copy link
Contributor Author

@adamreeve, I'd like to enable experimental native compilation of C# ADBC drivers -- which requires this feature or something like it. I'm mitigating the risk of the change by marking it as experimental and effectively making it "opt-in" by consuming code.

Copy link
Contributor

@adamreeve adamreeve left a comment

Choose a reason for hiding this comment

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

👍 putting this behind an experimental feature makes sense to me

@CurtHagenlocher CurtHagenlocher merged commit 06793ba into apache:main Oct 7, 2025
14 checks passed
@CurtHagenlocher CurtHagenlocher deleted the GH-111 branch October 7, 2025 02:58
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