Comments (4)
convert(Any, NA)
throws a method ambiguity error without it...
from datavalues.jl.
Works for me on master. What's the full error output you get?
from datavalues.jl.
julia> convert(Any, NA)
ERROR: MethodError: convert(::Type{Any}, ::DataValue{Union{}}) is ambiguous. Candidates:
convert(::Type{Union{Missing, T}}, ::DataValue{Union{}}) where T in DataValues at C:\Users\david\.julia\dev\DataValues\src\scalar\core.jl:38
convert(::Type{Any}, x) in Base at essentials.jl:153
Possible fix, define
convert(::Type{Any}, ::DataValue{Union{}})
Stacktrace:
[1] top-level scope at none:0
from datavalues.jl.
This also causes issues when trying to put a DataValue{Any}
into Any
-typed containers, e.g.
julia> dv = DataValue{Any}("asd")
DataValue{Any}("asd")
julia> c = Channel(0)
Channel{Any}(sz_max:0,sz_curr:0)
julia> put!(c, dv)
ERROR: MethodError: convert(::Type{Any}, ::DataValue{Any}) is ambiguous. Candidates:
convert(::Type{Any}, x) in Base at essentials.jl:170
convert(::Type{Union{Missing, T}}, value::DataValue{T}) where T in DataValues at /home/pfitzseb/.julia/packages/DataValues/N7oeL/src/scalar/core.jl:40
convert(::Type{T}, x::T) where T>:Union{Missing, Nothing} in Base at missing.jl:68
To resolve the ambiguity, try making one of the methods more specific, or adding a new method more specific than any of the existing applicable methods.
Stacktrace:
[1] put!(::Channel{Any}, ::DataValue{Any}) at ./channels.jl:311
[2] top-level scope at REPL[5]:1
on 1.5 or
julia> dv = DataValue{Any}("asd")
Error showing value of type DataValue{Any}:
ERROR: MethodError: convert(::Type{Any}, ::DataValue{Any}) is ambiguous. Candidates:
convert(::Type{Any}, x) in Base at essentials.jl:204
convert(::Type{T}, x::T) where T>:Union{Missing, Nothing} in Base at missing.jl:68
convert(::Type{T}, x::T) where T>:Nothing in Base at some.jl:35
convert(::Type{T}, x) where T>:Union{Missing, Nothing} in Base at missing.jl:70
convert(::Type{T}, x) where T>:Nothing in Base at some.jl:36
convert(::Type{Union{Missing, T}}, value::DataValue{T}) where T in DataValues at /home/pfitzseb/.julia/packages/DataValues/N7oeL/src/scalar/core.jl:40
To resolve the ambiguity, try making one of the methods more specific, or adding a new method more specific than any of the existing applicable methods.
Stacktrace:
[1] Base.RefValue{Any}(x::DataValue{Any})
@ Base ./refvalue.jl:8
[2] Ref{Any}(x::DataValue{Any})
@ Base ./refpointer.jl:136
[3] display(d::REPL.REPLDisplay, mime::MIME{Symbol("text/plain")}, x::Any)
@ REPL ~/Documents/Git/julia/usr/share/julia/stdlib/v1.7/REPL/src/REPL.jl:212
[4] display(d::REPL.REPLDisplay, x::Any)
@ REPL ~/Documents/Git/julia/usr/share/julia/stdlib/v1.7/REPL/src/REPL.jl:225
on master.
That first error is also the cause of julia-vscode/julia-vscode#1940.
from datavalues.jl.
Related Issues (20)
- Maybe add whitelisted transpose and ctranspose methods
- Check ==, any and all implementations from Nulls.jl
- Make sure our dropna is fast
- Add `get(f, Nullable)`
- Some issue with similar HOT 2
- Check whether one and oneunit should be added
- method ambiguity with similar
- Make sure we have good coverage of string functions
- Fix broadcasting for 0.7
- Address remaining TODO 0.7
- Remove dependency on Nullables.jl
- not a nice output from sum HOT 2
- Cannot `convert` an object of type DataValues.DataValue{Any} to an object of type DateTime HOT 2
- promotion causes segfault/stack overflow
- Add lifted version of occursin
- Add support for similar / undef initializer HOT 3
- Using Any as a lower bound
- Two failing tests HOT 1
- Reduce invalidations HOT 2
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 datavalues.jl.