Skip to content

Commit

Permalink
avoid expensive check (should not be required, row ids are checked du…
Browse files Browse the repository at this point in the history
…ring call of user functinos)
  • Loading branch information
mllg committed Jan 31, 2024
1 parent 45ae6d3 commit 9d7d7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/DataBackendDataTable.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DataBackendDataTable = R6Class("DataBackendDataTable", inherit = DataBackend,
#' Rows are guaranteed to be returned in the same order as `rows`, columns may be returned in an arbitrary order.
#' Duplicated row ids result in duplicated rows, duplicated column names lead to an exception.
data = function(rows, cols, data_format = "data.table") {
rows = assert_integerish(rows, coerce = TRUE, lower = 0L)
rows = assert_integerish(rows, coerce = TRUE)
assert_names(cols, type = "unique")
assert_choice(data_format, self$data_formats)
cols = intersect(cols, colnames(private$.data))
Expand Down

0 comments on commit 9d7d7c0

Please sign in to comment.