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

WIP: Port to Nulls #62

Closed
wants to merge 2 commits into from
Closed

WIP: Port to Nulls #62

wants to merge 2 commits into from

Conversation

quinnj
Copy link

@quinnj quinnj commented Oct 6, 2017

Companion PR to jq/nulls branch for Query.jl.

Status: Got most of the tests passing locally, though had trouble getting all the test dependencies installed (VegaLite mainly). There was a failure in the differentialequations.jl test file that I didn't quite follow and haven't had time to look into. We're also waiting on this PR for StatsModel.

I went ahead and removed DataTables since the package is deprecated now.

if iter.parameters[1].parameters[i] <: DataValue
push!(constructor_call.args, :(DataValue(columns[$i][i])))
if iter.parameters[1].parameters[i] >: Null
push!(constructor_call.args, :(isnull(columns[$i][i]) ? null : get(columns[$i][i])))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe_get?

@@ -80,7 +80,7 @@ end
push_exprs = Expr(:block)
for i in 1:n
if tt.parameters[2].parameters[i] <: NullableArray
ex = :( push!(tt.data[$i], Nullable(row[$i]) ))
ex = :( push!(tt.data[$i], isnull(row[$i]) ? Nullable() : Nullable(row[$i]) ))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use Nullable{typeof(row[$i])}() or something equivalent to ensure type stability.

@nalimilan
Copy link

I guess this should require DataFrames 0.11, Nulls 0.1.0 and StatsModels 0.1.0 (once these releases exist)?

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

Successfully merging this pull request may close these issues.

3 participants