-
Notifications
You must be signed in to change notification settings - Fork 21
Support operations between NullableArray and Nullable/scalar #143
Comments
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
For |
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
What does waiting for 0.6 have to do with it? |
Because 0.6 will offer a version of |
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
Ah. Yes it does. |
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
I don't know whether this is the right place to post this, but I am getting some strange behaviour:
the scalar boolean return value may be necessary for type stability, but I am thinking this may cause issues (I would expect the last expression to return |
@mkborregaard That's really weird, as those two calls do not work at all for me. Maybe you've loaded a particular package which overloads these methods? |
Hah! yes, Query.jl is the culprit. Should I open an issue over there? EDIT: I'll do that now (queryverse/Query.jl#79). julia> 3 < Nullable(4)
ERROR: MethodError: no method matching isless(::Int64, ::Nullable{Int64})
Closest candidates are:
isless(::Real, ::AbstractFloat) at operators.jl:41
isless(::Real, ::Real) at operators.jl:75
isless(::Integer, ::Char) at deprecated.jl:49
in <(::Int64, ::Nullable{Int64}) at ./operators.jl:63
julia> using DataFrames
julia> 3 < Nullable(4)
ERROR: MethodError: no method matching isless(::Int64, ::Nullable{Int64})
Closest candidates are:
isless(::Nullable{Union{}}, ::Nullable{T}) at /Users/michael/.julia/v0.5/NullableArrays/src/operators.jl:161
isless(::Real, ::AbstractFloat) at operators.jl:41
isless(::Real, ::Real) at operators.jl:75
...
in <(::Int64, ::Nullable{Int64}) at ./operators.jl:63
julia> using Query
WARNING: Method definition require(Symbol) in module Base at loading.jl:345 overwritten in module Query at /Users/michael/.julia/v0.5/Requires/src/require.jl:12.
WARNING: Method definition ==(Base.Nullable{#T<:Any}, Base.Nullable{Union{}}) in module NullableArrays at /Users/michael/.julia/v0.5/NullableArrays/src/operators.jl:140 overwritten in module Query at /Users/michael/.julia/v0.5/Query/src/operators.jl:8.
WARNING: Method definition ==(Base.Nullable{Union{}}, Base.Nullable{#T<:Any}) in module NullableArrays at /Users/michael/.julia/v0.5/NullableArrays/src/operators.jl:139 overwritten in module Query at /Users/michael/.julia/v0.5/Query/src/operators.jl:9.
WARNING: Method definition ==(Base.Nullable{#T1<:Any}, Base.Nullable{#T2<:Any}) in module NullableArrays at /Users/michael/.julia/v0.5/NullableArrays/src/operators.jl:130 overwritten in module Query at /Users/michael/.julia/v0.5/Query/src/operators.jl:77.
julia> 3 < Nullable(4)
true |
Yes, we've discussed this previously with @davidanthoff. With Julia 0.6 supporting |
What type would they return? (just out of curiosity) |
It already works, and it always returns |
Just to note that this won't work in Query. I need proper predicates in Query that return |
Again a broader issue which doesn't particularly affect DataFrames. Cf. JuliaStats/NullableArrays.jl#143
Basic operations such as this currently don't work:
The text was updated successfully, but these errors were encountered: