Moelf commented on issue #384:
URL: https://github.com/apache/arrow-julia/issues/384#issuecomment-1588504053

   I don't think it's fixed:
   ```julia
   julia> col1 = Vector{Union{Int64, String}}[
           ["one", 2],
           ["one", 2, 3],
           ["one", 2, 3, 4],
           ["one", 2, 3, 4, 5]];
   
   julia> df = DataFrame(;col1)
   4×1 DataFrame
    Row │ col1
        │ Array…
   ─────┼───────────────────────────────────
      1 │ Union{Int64, String}["one", 2]
      2 │ Union{Int64, String}["one", 2, 3]
      3 │ Union{Int64, String}["one", 2, 3…
      4 │ Union{Int64, String}["one", 2, 3…
   
   julia> a = tempname()
   "/tmp/jl_IngNyJwngp"
   
   julia> Arrow.write(a, df)
   "/tmp/jl_IngNyJwngp"
   
   julia> Arrow.Table(a)
   Arrow.Table with 4 rows, 1 columns, and schema:
    :col1  …  SubArray{Union{Missing, Int64, String}, 1, 
Arrow.DenseUnion{Union{Missing, Int64, String}, 
Arrow.UnionT{Arrow.Flatbuf.UnionMode.Dense, nothing, Tuple{Union{Missing, 
Int64}, String}}, Tuple{Arrow.Primitive{Union{Missing, Int64}, Vector{Int64}}, 
Arrow.List{String, Int32, Vector{UInt8}}}}, Tuple{UnitRange{Int64}}, true}
   
   julia> Arrow.Table(a).col1[1]
   2-element view(::Arrow.DenseUnion{Union{Missing, Int64, String}, 
Arrow.UnionT{Arrow.Flatbuf.UnionMode.Dense, nothing, Tuple{Union{Missing, 
Int64}, String}}, Tuple{Arrow.Primitive{Union{Missing, Int64}, Vector{Int64}}, 
Arrow.List{String, Int32, Vector{UInt8}}}}, 1:2) with eltype Union{Missing, 
Int64, String}:
     "one"
    2
   ```


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