You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(2264.09, DT, data.table(L = list("B"), i = 1L))
18649
+
test(2264.10, copy(DT)[, D := list(NULL)], data.table(L = list("B"), i = 1L), warning="Tried to assign NULL to column 'D', but this column does not exist to remove")
18650
+
# works, adds in functional form
18651
+
test(2264.11, copy(DT)[, `:=`(D = list(NULL))], data.table(L = list("B"), i = 1L, D = list(NULL)))
18652
+
# remove list column, must use NULL instead of list(NULL)
18653
+
test(2264.12, copy(DT)[, L := NULL], data.table(i = 1L))
18654
+
# remove non-list column, same as old
18655
+
test(2264.13, copy(DT)[, i := NULL], data.table(L = list("B")))
18656
+
# Same tests, with multiple rows
18657
+
DT = data.table(L = list("B", "C"), i = 1L)
18658
+
test(2264.14, copy(DT)[, D := list(NULL)], data.table(L = list("B", "C"), i = 1L), warning="Tried to assign NULL to column 'D', but this column does not exist to remove")
18659
+
test(2264.15, copy(DT)[, `:=`(D = list(NULL))], data.table(L = list("B", "C"), i = 1L, D = list(NULL)))
18660
+
test(2264.16, copy(DT)[, L := NULL], data.table(i = c(1L, 1L)))
18661
+
test(2264.17, copy(DT)[, i := NULL], data.table(L = list("B", "C")))
18662
+
# test for deleting a list column and adding a new empty list column in the same query, same as before
0 commit comments