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

   ```julia
   julia> using Colors, Arrow, DataFrames
   
   julia> colors = fill(colorant"red", 10)
   10-element Array{RGB{N0f8},1} with eltype RGB{FixedPointNumbers.N0f8}:
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
    RGB{N0f8}(1.0,0.0,0.0)
   
   julia> ArrowTypes.JuliaType(::Val{:Color}) = RGB{Colors.N0f8}
   
   julia> ArrowTypes.arrowname(::Type{RGB{Colors.N0f8}}) = :Color
   
   julia> df = (c = colors,);
   
   julia> a = tempname();
   
   julia> Arrow.write(a, df)
   "/tmp/jl_kVGtyjAbml"
   
   julia> Arrow.Table(a)
   Arrow.Table with 10 rows, 1 columns, and schema:
    :c  RGB{FixedPointNumbers.N0f8}
   
   julia> dfc = DataFrame(Arrow.Table("./place_color.feather"));
   
   julia> DataFrame(Arrow.Table(a))
   Error showing value of type DataFrame:
   ERROR: MethodError: no method matching 
RGB{FixedPointNumbers.N0f8}(::@NamedTuple{i::UInt8}, ::@NamedTuple{i::UInt8}, 
::@NamedTuple{i::UInt8})
   
   Closest candidates are:
     RGB{T}(::T, ::T, ::T) where T
      @ ColorTypes ~/.julia/packages/ColorTypes/1dGw6/src/types.jl:97
     RGB{T}(::Any) where T
      @ ColorTypes ~/.julia/packages/ColorTypes/1dGw6/src/types.jl:465
   
   Stacktrace:
     [1] fromarrow(::Type{RGB{FixedPointNumbers.N0f8}}, 
::@NamedTuple{i::UInt8}, ::@NamedTuple{i::UInt8}, ::@NamedTuple{i::UInt8})
       @ ArrowTypes ~/.julia/packages/ArrowTypes/Nb4EC/src/ArrowTypes.jl:168
   ```


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