Tortar commented on issue #492:
URL: https://github.com/apache/arrow-julia/issues/492#issuecomment-1773931920
ohh ok got it, the dataframe doesn't copy the content of the arrow table,
just steal the reference, if one tries:
```julia
julia> deleteat!(data_saved, 2)
ERROR: ArgumentError: `Arrow.Primitive{Int64, Vector{Int64}}` does not
support `deleteat!`; arrow data is by nature immutable
Stacktrace:
[1] deleteat!(x::Arrow.Primitive{Int64, Vector{Int64}}, inds::Vector{Int64})
@ Arrow
C:\Users\bob\.julia\packages\Arrow\R2Rvz\src\arraytypes\arraytypes.jl:32
[2] deleteat!(A::SentinelArrays.ChainedVector{Int64, Arrow.Primitive{Int64,
Vector{Int64}}}, inds::Vector{Int64})
@ SentinelArrays
C:\Users\bob\.julia\packages\SentinelArrays\cav7N\src\chainedvector.jl:560
[3] _deleteat!_helper(df::DataFrame, drop::Vector{Int64})
@ DataFrames
C:\Users\bob\.julia\packages\DataFrames\58MUJ\src\dataframe\dataframe.jl:919
[4] deleteat!(df::DataFrame, inds::Int64)
@ DataFrames
C:\Users\bob\.julia\packages\DataFrames\58MUJ\src\dataframe\dataframe.jl:861
[5] top-level scope
@ REPL[33]:1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]