Using TypedTables I construct a table. If the table has more than 31 columns, then trying to access an element of rows(t) seems to cause compile errors.
The following code runs in the julia repl, bug compiling with juliac results in error messages.
using TypedTables
const COLUMN_NAMES = (
:c1,:c2,:c3,:c4,:c5,:c6,:c7,:c8,:c9,:c10,:c11,:c12,:c13,:c14,:c15,:c16,
:c17,:c18,:c19,:c20,:c21,:c22,:c23,:c24,:c25,:c26,:c27,:c28,:c29,:c30,
:c31,:c32
)
const TUPLE_TYPE = Tuple{
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String},
Vector{String},Vector{String},Vector{String},Vector{String}
}
const VALUES = (
["1"],["2"],["3"],["4"],["5"],["6"],["7"],["8"],["9"],["10"],
["11"],["12"],["13"],["14"],["15"],["16"],["17"],["18"],["19"],["20"],
["21"],["22"],["23"],["24"],["25"],["26"],["27"],["28"],["29"],["30"],
["31"],["32"]
)
function (@main)(args::Vector{String})::Cint
nt = NamedTuple{COLUMN_NAMES, TUPLE_TYPE}(VALUES)
t = Table(nt)
r1 = rows(t)[1]
return 0
end
Compiling results in 4 error messages.
Verifier error #1: unresolved call from statement Core._apply_iterate(Base.iterate, Core.tuple, %new()::Vector{String})::Tuple{Vararg{String}}
Stacktrace:
[1] _totuple(T::Type{NTuple{32, String}}, itr::Base.Generator{@NamedTuple{a::Vector{String}, b::Vector{String}, ...
Verifier error #2: unresolved call from statement (NT::Type{@NamedTuple{a::String, b::String, ....
The 3rd and 4th error messages are similar.
Using TypedTables I construct a table. If the table has more than 31 columns, then trying to access an element of
rows(t)seems to cause compile errors.The following code runs in the julia repl, bug compiling with
juliacresults in error messages.Compiling results in 4 error messages.
The 3rd and 4th error messages are similar.