JuliaData / JuliaDBMeta.jl

Metaprogramming tools for JuliaDB
Other
33 stars 2 forks source link

`transform_vec` doesn't replace existing column #46

Open xiaodaigh opened 4 years ago

xiaodaigh commented 4 years ago

See MWE:

t = JuliaDB.table((a = [1,2, missing, 4, missing],))
t = @transform_vec t {a = coalesce(:a, 2)}

a is not replaced, but the below is fine, the new column b is created automatically.

t = JuliaDB.table((a = [1,2, missing, 4, missing],))
t = @transform_vec t {b = coalesce(:a, 2)}