Skip to content

Commit

Permalink
Don't access private fields of lazy table (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Oct 17, 2023
1 parent 3ba5812 commit 217c13d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/DataBackendDplyr.R
Expand Up @@ -273,11 +273,7 @@ DataBackendDplyr = R6Class("DataBackendDplyr", inherit = DataBackend, cloneable
private = list(
.calculate_hash = function() {
private$.reconnect()
if (inherits(private$.data, "tbl_lazy")) {
calculate_hash(private$.data$ops, private$.data$con)
} else {
calculate_hash(private$.data)
}
calculate_hash(private$.data)
},

.reconnect = function() {
Expand Down

0 comments on commit 217c13d

Please sign in to comment.