Comments (2)
Seems like we get a decent error rather than a crash if we use Type
instead:
julia> Arrow.write(io, (types = Type[Int64, Float64],))
ERROR: ArgumentError: type does not have a definite number of fields
Stacktrace:
[1] fieldcount(::Any) at ./reflection.jl:722
[2] arrowvector(::Arrow.ArrowTypes.StructType, ::Array{Type,1}, ::Int64, ::Int64, ::Int64, ::Dict{Int64,Any}, ::Array{Arrow.DictEncoding,1}, ::Nothing; kw::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},NTuple{5,Symbol},NamedTuple{(:dictencode, :compression, :largelists, :denseunions, :dictencodenested),Tuple{Bool,Nothing,Bool,Bool,Bool}}}) at /Users/jarrettrevels/.julia/dev/Arrow/src/arraytypes/struct.jl:89
[3] arrowvector(::Type{Type}, ::Array{Type,1}, ::Int64, ::Int64, ::Int64, ::Dict{Int64,Any}, ::Array{Arrow.DictEncoding,1}, ::Nothing; kw::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},NTuple{5,Symbol},NamedTuple{(:dictencode, :compression, :largelists, :denseunions, :dictencodenested),Tuple{Bool,Nothing,Bool,Bool,Bool}}}) at /Users/jarrettrevels/.julia/dev/Arrow/src/arraytypes/arraytypes.jl:78
[4] arrowvector(::Array{Type,1}, ::Int64, ::Int64, ::Int64, ::Dict{Int64,Any}, ::Array{Arrow.DictEncoding,1}, ::Nothing; dictencoding::Bool, dictencode::Bool, kw::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},NTuple{4,Symbol},NamedTuple{(:compression, :largelists, :denseunions, :dictencodenested),Tuple{Nothing,Bool,Bool,Bool}}}) at /Users/jarrettrevels/.julia/dev/Arrow/src/arraytypes/arraytypes.jl:52
[5] toarrowvector(::Array{Type,1}, ::Int64, ::Dict{Int64,Any}, ::Array{Arrow.DictEncoding,1}, ::Nothing; compression::Nothing, kw::Base.Iterators.Pairs{Symbol,Bool,NTuple{4,Symbol},NamedTuple{(:largelists, :denseunions, :dictencode, :dictencodenested),NTuple{4,Bool}}}) at /Users/jarrettrevels/.julia/dev/Arrow/src/arraytypes/arraytypes.jl:36
[6] (::Arrow.var"#113#114"{Dict{Int64,Any},Bool,Nothing,Bool,Bool,Bool,Array{Any,1},Array{Type,1},Array{Arrow.DictEncoding,1}})(::Array{Type,1}, ::Int64, ::Symbol) at /Users/jarrettrevels/.julia/dev/Arrow/src/write.jl:202
[7] eachcolumn at /Users/jarrettrevels/.julia/packages/Tables/iG2a3/src/utils.jl:70 [inlined]
[8] toarrowtable(::NamedTuple{(:types,),Tuple{Array{Type,1}}}, ::Dict{Int64,Any}, ::Bool, ::Nothing, ::Bool, ::Bool, ::Bool) at /Users/jarrettrevels/.julia/dev/Arrow/src/write.jl:201
[9] macro expansion at /Users/jarrettrevels/.julia/dev/Arrow/src/write.jl:111 [inlined]
[10] macro expansion at ./task.jl:332 [inlined]
[11] write(::Base.GenericIOBuffer{Array{UInt8,1}}, ::NamedTuple{(:types,),Tuple{Array{Type,1}}}, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Bool, ::Int64) at /Users/jarrettrevels/.julia/dev/Arrow/src/write.jl:108
[12] #write#106 at /Users/jarrettrevels/.julia/dev/Arrow/src/write.jl:83 [inlined]
[13] write(::Base.GenericIOBuffer{Array{UInt8,1}}, ::NamedTuple{(:types,),Tuple{Array{Type,1}}}) at /Users/jarrettrevels/.julia/dev/Arrow/src/write.jl:83
[14] top-level scope at REPL[6]:1
from arrow-julia.
On #156, we'll now throw the error
from arrow-julia.
Related Issues (20)
- `Arrow.write` performance on large DataFrame HOT 3
- Bus errors when writing `DataFrame` HOT 8
- Arrow stream writer and reader implementation questions
- [feature request] support run-end encoded layout
- Custom type cannot round trip (Colors.jl) HOT 1
- colmetadata does not read custom metadata with multiple writes
- `getindex` broken with `SVector{3, UInt}` in the presence of missing data HOT 2
- Removing .arrow files without closing Julia seems impossible in Windows HOT 18
- support Dates.CompoundPeriod in deserialization?
- copy does not copy to standard Julia Types HOT 5
- Unexpected allocations HOT 2
- Type instability in getcolumn
- Cannot append DictEncode columns to Stream
- Arrow-over-HTTP client and server examples in Julia
- Deeply nested structs cause long compilation times HOT 9
- `snappy_jll v1.2.0` lead to Arrow_jll failed to build HOT 4
- Deserialization as Vector{SubArray} breaks `push!` on DataFrame HOT 7
- Add support for FileIO HOT 2
- interoperability with round-tripping through data format broken (x-issue) HOT 1
- Arrow.jl fails to precompile with error "Magic file identifier "TZjf" not found." HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arrow-julia.