Skip to content

Commit dc95644

Browse files
need to pass 'ans' too
1 parent fa3be64 commit dc95644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/data.table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ replace_dot_alias = function(e) {
13361336
ans[xcolsAns] = .Call(CsubsetDT, x, irows, xcols)
13371337
setattr(ans, "names", ansvars)
13381338
# NB: could be NULL
1339-
setattr(ans, "sorted", .join_result_key(x, i, if (!missing(on)) names(on), ansvars, leftcols, rightcols, names_i, irows, roll))
1339+
setattr(ans, "sorted", .join_result_key(x, i, ans, if (!missing(on)) names(on), ansvars, leftcols, rightcols, names_i, irows, roll))
13401340
setattr(ans, "class", class(x)) # retain class that inherits from data.table, #64
13411341
setattr(ans, "row.names", .set_row_names(length(ans[[1L]])))
13421342
setalloccol(ans)
@@ -2009,7 +2009,7 @@ replace_dot_alias = function(e) {
20092009
}
20102010

20112011
# can the specified merge of x and i be marked as sorted? return the columns for which this is true, otherwise NULL
2012-
.join_result_key <- function(x, i, on_lhs, ansvars, leftcols, rightcols, names_i, irows, roll) {
2012+
.join_result_key <- function(x, i, ans, on_lhs, ansvars, leftcols, rightcols, names_i, irows, roll) {
20132013
x_key <- key(x)
20142014
if (is.null(x_key))
20152015
return(NULL)

0 commit comments

Comments
 (0)