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

   I could not find this documented:
   ```julia
   using Arrow, DataFrames
   df = DataFrame(("$i" => rand(1000) for i in 1:65536)...)
   Arrow.write("out/df.arrow", df)
   ```
   produces
   ```
   ...
   julia> Arrow.write("data.arrow", df)
   ERROR: MethodError: no method matching length(::Nothing)
   Closest candidates are:
     length(::Union{Base.KeySet, Base.ValueIterator}) at abstractdict.jl:58
     length(::Union{LinearAlgebra.Adjoint{T, S}, LinearAlgebra.Transpose{T, S}} 
where {T, S}) at 
~/.julia/juliaup/julia-1.8.5+0.aarch64.apple.darwin14/share/julia/stdlib/v1.8/LinearAlgebra/src/adjtrans.jl:172
     length(::Union{Tables.AbstractColumns, Tables.AbstractRow}) at 
~/.julia/packages/Tables/AcRIE/src/Tables.jl:180
     ...
   Stacktrace:
    [1] makeschema(b::Arrow.FlatBuffers.Builder, sch::Tables.Schema{nothing, 
nothing}, columns::Arrow.ToArrowTable)
      @ Arrow ~/.julia/packages/Arrow/P0wVk/src/write.jl:393
    [2] close(writer::Arrow.Writer{IOStream})
      @ Arrow ~/.julia/packages/Arrow/P0wVk/src/write.jl:244
    [3] open(::Arrow.var"#122#123"{DataFrame}, ::Type, ::Vararg{Any}; 
kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:file,), 
Tuple{Bool}}})
      @ Base ./io.jl:386
    [4] #write#121
      @ ~/.julia/packages/Arrow/P0wVk/src/write.jl:57 [inlined]
    [5] top-level scope
      @ REPL[94]:1
   
   caused by: MethodError: no method matching length(::Nothing)
   Closest candidates are:
     length(::Union{Base.KeySet, Base.ValueIterator}) at abstractdict.jl:58
     length(::Union{LinearAlgebra.Adjoint{T, S}, LinearAlgebra.Transpose{T, S}} 
where {T, S}) at 
~/.julia/juliaup/julia-1.8.5+0.aarch64.apple.darwin14/share/julia/stdlib/v1.8/LinearAlgebra/src/adjtrans.jl:172
     length(::Union{Tables.AbstractColumns, Tables.AbstractRow}) at 
~/.julia/packages/Tables/AcRIE/src/Tables.jl:180
     ...
   Stacktrace:
    [1] makeschema(b::Arrow.FlatBuffers.Builder, sch::Tables.Schema{nothing, 
nothing}, columns::Arrow.ToArrowTable)
      @ Arrow ~/.julia/packages/Arrow/P0wVk/src/write.jl:393
    [2] makeschemamsg(sch::Tables.Schema{nothing, nothing}, 
columns::Arrow.ToArrowTable)
      @ Arrow ~/.julia/packages/Arrow/P0wVk/src/write.jl:430
    [3] macro expansion
      @ ~/.julia/packages/Arrow/P0wVk/src/write.jl:198 [inlined]
    [4] macro expansion
      @ ./task.jl:454 [inlined]
    [5] write(writer::Arrow.Writer{IOStream}, source::DataFrame)
      @ Arrow ~/.julia/packages/Arrow/P0wVk/src/write.jl:185
    [6] (::Arrow.var"#122#123"{DataFrame})(writer::Arrow.Writer{IOStream})
      @ Arrow ~/.julia/packages/Arrow/P0wVk/src/write.jl:58
    [7] open(::Arrow.var"#122#123"{DataFrame}, ::Type, ::Vararg{Any}; 
kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:file,), 
Tuple{Bool}}})
      @ Base ./io.jl:384
    [8] #write#121
      @ ~/.julia/packages/Arrow/P0wVk/src/write.jl:57 [inlined]
    [9] top-level scope
      @ REPL[94]:1
   ```
   Whereas it works with 65535 columns.


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