Skip to content

Commit e91bdf8

Browse files
authored
Merge pull request #669 from cmu-delphi/lcb/archive-filter-proper-intermediate-key
Fix temporary key setting in `filter.epi_archive` that has to be reset
2 parents 5e8e09e + 30b2dc7 commit e91bdf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/methods-epi_archive.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ filter.epi_archive <- function(.data, ..., .by = NULL, .format_aware = FALSE) {
11591159
out_other_keys <- .data$other_keys
11601160
# `filter` makes no guarantees about not aliasing columns in its result when
11611161
# the filter condition is all TRUE, so don't setDT.
1162-
out_dtbl <- as.data.table(out_tbl, key = out_other_keys)
1162+
out_dtbl <- as.data.table(out_tbl, key = c("geo_value", "time_value", out_other_keys, "version"))
11631163
result <- new_epi_archive(
11641164
out_dtbl,
11651165
out_geo_type, out_time_type, out_other_keys,

0 commit comments

Comments
 (0)