Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to read valid file #511

Open
adienes opened this issue Jul 26, 2024 · 2 comments
Open

Failure to read valid file #511

adienes opened this issue Jul 26, 2024 · 2 comments

Comments

@adienes
Copy link

adienes commented Jul 26, 2024

both pyarrow and polars can read this table, but
mwe.arrow.zip

julia> Arrow.Table("mwe.arrow")

1-element ExceptionStack:
TaskFailedException

    nested task error: MethodError: no method matching init(::Nothing, ::Vector{UInt8}, ::Int64)
    
    Closest candidates are:
      init(::Type{T}, ::Vector{UInt8}, ::Integer) where T<:Union{Arrow.FlatBuffers.Struct, Arrow.FlatBuffers.Table}
       @ Arrow ~/.julia/packages/Arrow/5pHqZ/src/FlatBuffers/table.jl:43
    
    Stacktrace:
     [1] getproperty(x::Arrow.Flatbuf.Field, field::Symbol)
       @ Arrow.Flatbuf ~/.julia/packages/Arrow/5pHqZ/src/metadata/Schema.jl:542
     [2] build(field::Arrow.Flatbuf.Field, batch::Arrow.Batch, rb::Arrow.Flatbuf.RecordBatch, de::Dict{Int64, Arrow.DictEncoding}, nodeidx::Int64, bufferidx::Int64, convert::Bool)
       @ Arrow ~/.julia/packages/Arrow/5pHqZ/src/table.jl:668
     [3] iterate(x::Arrow.VectorIterator, ::Tuple{Int64, Int64, Int64})
       @ Arrow ~/.julia/packages/Arrow/5pHqZ/src/table.jl:629
     [4] copyto!(dest::Vector{Any}, src::Arrow.VectorIterator)
       @ Base ./abstractarray.jl:948
     [5] _collect
       @ ./array.jl:765 [inlined]
     [6] collect
       @ ./array.jl:759 [inlined]
     [7] macro expansion
       @ ~/.julia/packages/Arrow/5pHqZ/src/table.jl:526 [inlined]
     [8] (::Arrow.var"#102#108"{Bool, Channel{Any}, ConcurrentUtilities.OrderedSynchronizer, Dict{Int64, Arrow.DictEncoding}, Arrow.Batch, Int64})()
       @ Arrow ~/.julia/packages/ConcurrentUtilities/QOkoO/src/ConcurrentUtilities.jl:48
Stacktrace:
 [1] sync_end(c::Channel{Any})
   @ Base ./task.jl:448
 [2] macro expansion
   @ ./task.jl:480 [inlined]
 [3] Arrow.Table(blobs::Vector{Arrow.ArrowBlob}; convert::Bool)
   @ Arrow ~/.julia/packages/Arrow/5pHqZ/src/table.jl:441
 [4] Table
   @ ~/.julia/packages/Arrow/5pHqZ/src/table.jl:415 [inlined]
 [5] Table
   @ ~/.julia/packages/Arrow/5pHqZ/src/table.jl:407 [inlined]
 [6] Arrow.Table(input::String)
   @ Arrow ~/.julia/packages/Arrow/5pHqZ/src/table.jl:407
 [7] top-level scope
   @ REPL[4]:1
@mkitti
Copy link

mkitti commented Nov 27, 2024

Could you provide a hint about what might be special about this table?

@adienes
Copy link
Author

adienes commented Nov 27, 2024

this is the table in entirety --- presumably the binary aka bytearray columns are the "special" ones

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants