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

similar does not return a mutable container in the presence of missing #1195

Closed
adienes opened this issue Sep 13, 2023 · 1 comment · Fixed by #1196
Closed

similar does not return a mutable container in the presence of missing #1195

adienes opened this issue Sep 13, 2023 · 1 comment · Fixed by #1196

Comments

@adienes
Copy link
Contributor

adienes commented Sep 13, 2023

julia> x = @SVector [1,2,3,missing];

julia> y = similar(x)
4-element MVector{4, Union{Missing, Int64}} with indices SOneTo(4):
 #undef
 #undef
 #undef
 #undef

julia> y[1] = -1
ERROR: setindex!() with non-isbitstype eltype is not supported by StaticArrays. Consider using SizedArray.

I believe this is the cause of apache/arrow-julia#486

@adienes
Copy link
Contributor Author

adienes commented Sep 14, 2023

duplicate of #799

@adienes adienes closed this as completed Sep 14, 2023
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 a pull request may close this issue.

1 participant