Discovered when updating the source table in an ETL and using data.table downstream; source column names changed and gave me an error that's hard to deal with quickly:
DT = data.table(a = 1:5)
DT[ , .SD, .SDcols = 'b']
Error in [.data.table(DT, , .SD, .SDcols = "b") :
Some items of .SDcols are not column names (or are NA)
Discovered when updating the source table in an ETL and using
data.tabledownstream; source column names changed and gave me an error that's hard to deal with quickly: