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

   thanks @Moelf .
   
   I tried this code, but removal still gives error
   
   ```julia
               offline_run!(model, 365 * 5;
                   when_model = each_year,
                   when = six_months,
                   backend = :arrow,
                   mdata = [:flag, :year],
                   adata = [(:weight, mean)],
                   writing_interval = 3
               )
   
               adata_arrow = Arrow.Table("adata.arrow")
               adata_saved = DataFrame(adata_arrow)
               @test size(adata_saved) == (11, 2)
               @test propertynames(adata_saved) == [:step, :mean_weight]
   
               mdata_arrow = Arrow.Table("mdata.arrow")
               mdata_saved = DataFrame(mdata_arrow)
               @test size(mdata_saved) == (6, 3)
               @test propertynames(mdata_saved) == [:step, :flag, :year]
   
               adata_stream_arrow = Arrow.Stream("adata.arrow")
               mdata_stream_arrow = Arrow.Stream("mdata.arrow")
               @test size(vcat(DataFrame.(adata_stream_arrow)...)) == (11, 2)
               @test size(vcat(DataFrame.(mdata_stream_arrow)...)) == (6, 3)
   
               if Sys.iswindows()
                   mdata_arrow = nothing
                   mdata_saved = nothing
                   mdata_stream_arrow = nothing
                   adata_stream_arrow = nothing
                   for _ in 1:5
                       GC.gc()
                   end
               end
   ```


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