DataFrames cannot describe columns with #N/A DataValue


#1

Where should I file this bug…?

julia> using DataFrames, DataValues

julia> x = DataFrame(a = [DataValue{Any}()])
1×1 DataFrame
│ Row │ a   │
├─────┼─────┤
│ 1   │ #NA │

julia> describe(x)
Unreachable reached at 0x129c9e0e6

signal (4): Illegal instruction: 4
in expression starting at no file:0
setindex! at ./dict.jl:381
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
grow_to! at ./dict.jl:159
unknown function (ip: 0x129c9d83e)
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
grow_to! at ./dict.jl:160
Type at ./dict.jl:145
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
Type at ./dict.jl:125
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
get_stats at /Users/tomkwong/.julia/packages/DataFrames/utxEh/src/abstractdataframe/abstractdataframe.jl:509
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
iterate at ./generator.jl:47 [inlined]
collect at ./array.jl:619
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
#describe#18 at /Users/tomkwong/.julia/packages/DataFrames/utxEh/src/abstractdataframe/abstractdataframe.jl:456
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
describe at /Users/tomkwong/.julia/packages/DataFrames/utxEh/src/abstractdataframe/abstractdataframe.jl:428
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:324
eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:363 [inlined]
eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:686
jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:799
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x113ecc28f)
unknown function (ip: 0xffffffffffffffff)
jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:808
jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:787
jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/builtins.c:622
eval at ./boot.jl:319
eval_user_input at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:85
macro expansion at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:117 [inlined]
#28 at ./task.jl:259
jl_apply at /Users/osx/buildbot/slave/package_osx64/build/src/./julia.h:1536 [inlined]
start_task at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:268
Allocations: 71926011 (Pool: 71910227; Big: 15784); GC: 158
Illegal instruction: 4

#2

Probably Julia itself? Whatever we do in either DataValues.jl or DataFrames.jl shouldn’t be able to bring down Julia.


#3

Looks similar to


#4

Submitted issue.