Tortar commented on issue #492:
URL: https://github.com/apache/arrow-julia/issues/492#issuecomment-1773881274

   thanks anyway for the help @Moelf . 
   
   To be able to bisect the issue more easily I created this MWE:
   
   ```julia
   using Arrow, DataFrames
   
   function writer_arrow(filename, data, append)
       if append
           Arrow.append(filename, data)
       else
           Arrow.write(filename, data; file = false)
       end
   end
   
   filename = "MWE.arrow"
   data = DataFrame(a=1:4, b=["M", "F", "F", "M"])
   writer_arrow(filename, data, false)
   for i in 1:10
       writer_arrow(filename, data, true)
   end
   table = Arrow.Table("MWE.arrow")
   data_saved = DataFrame(table)
   table = nothing
   GC.gc(); GC.gc()
   rm("MWE.arrow")
   ```
   
   which gives when runned in REPL:
   
   ```julia
   julia> rm("MWE.arrow")
   ERROR: IOError: unlink("MWE.arrow"): permission denied (EACCES)
   Stacktrace:
    [1] uv_error
      @ .\libuv.jl:100 [inlined]
    [2] unlink(p::String)
      @ Base.Filesystem .\file.jl:972
    [3] rm(path::String; force::Bool, recursive::Bool)
      @ Base.Filesystem .\file.jl:283
    [4] rm(path::String)
      @ Base.Filesystem .\file.jl:273
    [5] top-level scope
      @ REPL[11]:1
   ```
   
   Hopefully this will help someone who can solve the issue :-)


-- 
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]

Reply via email to