Thanks. While this allows for the package to precompile, it still causes the error “UnionAll has no field types”.
mutable struct TDatumVal{T} <: Thrift.TMsg
int_val::Int64
real_val::Float64
str_val::String
arr_val::Vector{T}
TDatumVal{T}() where T = (o=new(); fillunset(o); o)
end # mutable struct TDatumVal
mutable struct TDatum{T} <: Thrift.TMsg
val::T
is_null::Bool
TDatum{T}() where T = (o=new(); fillunset(o); o)
end # mutable struct TDatum
julia> se = sql_execute(conn, "select count(*) as records from mapd_counties", false, 100, 100)
ERROR: type UnionAll has no field types
Stacktrace:
[1] getproperty at ./sysimg.jl:15 [inlined]
[2] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}, ::Bool) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:510
[3] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:503
[4] meta(::Type) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:494
[5] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}, ::Bool) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:522
[6] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:503
[7] meta(::Type) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:494
[8] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}, ::Bool) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:522
[9] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:503
[10] meta(::Type) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:494
[11] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}, ::Bool) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:520
[12] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:503
[13] meta(::Type) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:494
[14] meta(::Type, ::Array{Symbol,1}, ::Array{Int64,1}, ::Dict{Symbol,Any}, ::Bool) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:520
[15] meta at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:503 [inlined]
[16] meta(::Type{OmniSci.sql_execute_result}) at /home/randyzwitch/.julia/dev/OmniSci/src/mapd_types.jl:828
[17] read_container(::Thrift.TBinaryProtocol, ::OmniSci.sql_execute_result) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:174
[18] read(::Thrift.TBinaryProtocol, ::OmniSci.sql_execute_result) at /home/randyzwitch/.julia/packages/Thrift/BxShm/src/base.jl:169
[19] sql_execute(::MapDClient, ::String, ::String, ::Bool, ::String, ::Int32, ::Int32) at /home/randyzwitch/.julia/dev/OmniSci/src/mapd_client.jl:531
[20] sql_execute(::OmniSciConnection, ::String, ::Bool, ::Int64, ::Int64) at /home/randyzwitch/.julia/dev/OmniSci/src/misc.jl:93
[21] top-level scope at none:0