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

another schema violation #203

Open
ericphanson opened this issue May 27, 2021 · 0 comments
Open

another schema violation #203

ericphanson opened this issue May 27, 2021 · 0 comments

Comments

@ericphanson
Copy link
Member

similar to #167

julia> signals
Arrow.Table with 15 rows, 11 columns, and schema:
 :recording                  Base.UUID
 :file_path                  String
 :file_format                String
 :span                       TimeSpans.TimeSpan
 :kind                       String
 :channels                   Vector{String} (alias for Array{String, 1})
 :sample_unit                String
 :sample_resolution_in_unit  Float64
 :sample_offset_in_unit      Float64
 :sample_type                String
 :sample_rate                Float64

julia> Tables.rowtable(signals)
ERROR: TypeError: in new, expected Vector{String}, got a value of type SubArray{String, 1, Arrow.List{String, Int32, Vector{UInt8}}, Tuple{UnitRange{Int64}}, true}
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/Tables/YzCZp/src/namedtuples.jl:46 [inlined]
 [2] _iterate(rows::Tables.NamedTupleIterator{Tables.Schema{(:recording, :file_path, :file_format, :span, :kind, :channels, :sample_unit, :sample_resolution_in_unit, :sample_offset_in_unit, :sample_type, :sample_rate), Tuple{Base.UUID, String, String, TimeSpans.TimeSpan, String, Vector{String}, String, Float64, Float64, String, Float64}}, Tables.RowIterator{Tables.CopiedColumns{Arrow.Table}}}, st::Tuple{})
   @ Tables ~/.julia/packages/Tables/YzCZp/src/namedtuples.jl:37
 [3] iterate
   @ ~/.julia/packages/Tables/YzCZp/src/namedtuples.jl:58 [inlined]
 [4] iterate
   @ ~/.julia/packages/Tables/YzCZp/src/namedtuples.jl:57 [inlined]
 [5] copyto!(dest::Vector{NamedTuple{(:recording, :file_path, :file_format, :span, :kind, :channels, :sample_unit, :sample_resolution_in_unit, :sample_offset_in_unit, :sample_type, :sample_rate), Tuple{Base.UUID, String, String, TimeSpans.TimeSpan, String, Vector{String}, String, Float64, Float64, String, Float64}}}, src::Tables.NamedTupleIterator{Tables.Schema{(:recording, :file_path, :file_format, :span, :kind, :channels, :sample_unit, :sample_resolution_in_unit, :sample_offset_in_unit, :sample_type, :sample_rate), Tuple{Base.UUID, String, String, TimeSpans.TimeSpan, String, Vector{String}, String, Float64, Float64, String, Float64}}, Tables.RowIterator{Tables.CopiedColumns{Arrow.Table}}})
   @ Base ./abstractarray.jl:843
 [6] _collect(cont::UnitRange{Int64}, itr::Tables.NamedTupleIterator{Tables.Schema{(:recording, :file_path, :file_format, :span, :kind, :channels, :sample_unit, :sample_resolution_in_unit, :sample_offset_in_unit, :sample_type, :sample_rate), Tuple{Base.UUID, String, String, TimeSpans.TimeSpan, String, Vector{String}, String, Float64, Float64, String, Float64}}, Tables.RowIterator{Tables.CopiedColumns{Arrow.Table}}}, #unused#::Base.HasEltype, isz::Base.HasLength)
   @ Base ./array.jl:608
 [7] collect(itr::Tables.NamedTupleIterator{Tables.Schema{(:recording, :file_path, :file_format, :span, :kind, :channels, :sample_unit, :sample_resolution_in_unit, :sample_offset_in_unit, :sample_type, :sample_rate), Tuple{Base.UUID, String, String, TimeSpans.TimeSpan, String, Vector{String}, String, Float64, Float64, String, Float64}}, Tables.RowIterator{Tables.CopiedColumns{Arrow.Table}}})
   @ Base ./array.jl:602
 [8] rowtable(itr::Arrow.Table)
   @ Tables ~/.julia/packages/Tables/YzCZp/src/namedtuples.jl:99
 [9] top-level scope
   @ REPL[15]:1

(jl_0M34Wq) pkg> st
      Status `/tmp/jl_0M34Wq/Project.toml`
  [fbe9abb3] AWS v1.41.0
  [1c724243] AWSS3 v0.8.3
  [e853f5be] Onda v0.13.6
  [bd369af6] Tables v1.4.3
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

1 participant