Tortar commented on issue #492:
URL: https://github.com/apache/arrow-julia/issues/492#issuecomment-1773954994
Reopening since even with this new information I couldn't get the code to
work on Windows in the test of Agents.jl and so...I got a new updated MWE:
```julia
using Arrow, DataFrames, Test
if true
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
data_saved = DataFrame(Arrow.Table("MWE.arrow"), copycols=true)
adata_dfs = [DataFrame(s, copycols=true) for s in
Arrow.Stream("MWE.arrow")]
@test size(vcat(adata_dfs...)) == (44, 2)
GC.gc()
rm("MWE.arrow")
end
```
this again throws "ERROR: IOError: unlink("MWE.arrow"): permission denied
(EACCES)", notice that strangely if I remove the if statement wrapping all the
code everything works fine.
--
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]