bgctw opened a new issue, #386:
URL: https://github.com/apache/arrow-julia/issues/386

   I try to redo the Custom Types example of the documentation, but I am not 
able to read proper Person types.
   
   ```
   using Arrow: Arrow, ArrowTypes
   struct Person
       id::Int
       name::String
   end
   ArrowTypes.arrowname(::Type{Person}) = :Person
   ArrowTypes.JuliaType(::Val{:Person}) = Person
   
   table = (col1=[Person(1, "Bob"), Person(2, "Jane")],)
   io = IOBuffer()
   Arrow.write(io, table)
   seekstart(io)
   table2 = Arrow.Table(io)
   p1 = first(table2)
   typeof(p1)  # Arrow.Struct{Person, ...}
   p1 isa Person # false
   ```
   
   Both with Julia 1.8.4 and 1.8.5
   In an otherwise empty environment:
   ```
   (jl_t4jDSi) pkg> st
   Status `/tmp/jl_t4jDSi/Project.toml`
     [69666777] Arrow v2.4.2
   ```
   
   And also with the current master (`dev 
https://github.com/apache/arrow-julia.git`)
   ```
   (jl_t4jDSi) pkg> st
   Status `/tmp/jl_t4jDSi/Project.toml`
     [69666777] Arrow v2.4.2 `~/julia/dev/Arrow`
   ```


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