Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Return format of Arrow Stream data to an Elixir NIF #1033

Discussion options

You must be logged in to vote

This is a very interesting question!

Generally, there are two questions to answer:

  1. which allocator are you planning to use to handle snowflake's arrow data?

    1.1. Rust's allocator
    1.2. Elixir's allocator

  2. which in-memory format do you plan to use in your application?

    2.1. Arrow
    2.2. Custom in-memory format

From these questions, we can design our needs:

a. (1.1, 2.1) - a mechanism to expose shared structs like Arc<dyn Array> to Elixir (this is what the Arrow C data interface is intended for)
b. (1.1, 2.2) - a mechanism to expose non-owning structs like &[T] to Elixir, and a mechanism to convert them to the custom format
c. (1.2, 2.1) - a mechanism to expose Arc<dyn Array> to Elixir and…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by joshuataylor
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jorgecarleitao
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants