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

Query Fails on columns of type Any #310

Open
babaq opened this issue Jul 28, 2020 · 0 comments
Open

Query Fails on columns of type Any #310

babaq opened this issue Jul 28, 2020 · 0 comments

Comments

@babaq
Copy link

babaq commented Jul 28, 2020

df = DataFrame(id=1:3,p=[[1, missing],[2, 3],[3, 4,missing]])

@from i in df begin
    @from j in i.p
    @select {i.id,p=j}
    @collect DataFrame
end

the above works because the column id has type Int, and column p has type Vector{Array{Union{Missing, Int64},1}}, but it fails on

df = DataFrame(id=1:3,p=Any[[1, missing],[2, 3],[3, 4,missing]])

This seems to me a bug, because the result DataFrame of above query have all the columns having type Any, preventing further query operations on the query result.

code tested on Query master v0.12.3-DEV, Julia v1.4.2 on windows 10.

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