Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r] Map raw to arrow::binary() #3506

Open
mojaveazure opened this issue Dec 20, 2024 · 0 comments
Open

[r] Map raw to arrow::binary() #3506

mojaveazure opened this issue Dec 20, 2024 · 0 comments

Comments

@mojaveazure
Copy link
Member

R currently maps raw vectors to arrow::uint8() instead of arrow::binary(); this prevents the data from being read back as a raw or Python bytes for decoding and recovering

> df <- data.frame(soma_joinid = bit64::seq.integer64(0L, 99L), bytes = raw(100L))
> tbl <- arrow::as_arrow_table(df)
> sdf <- SOMADataFrameCreate("df-raw", schema = tbl$schema, domain = list(soma_joinid = c(0L, 100L)))
> sdf$write(tbl)
> sdf$close()
> sdf <- SOMADataFrameOpen(uri)
> sdf$read()$concat()
[1] Table
100 rows x 3 columns
$soma_joinid <int64 not null>
$bytes <uint8>
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

No branches or pull requests

1 participant