Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error trying to use "lazy" indexing on non-data.table in anti-join i #6501

Closed
MichaelChirico opened this issue Sep 16, 2024 · 0 comments · Fixed by #6502
Closed
Assignees
Milestone

Comments

@MichaelChirico
Copy link
Member

MichaelChirico commented Sep 16, 2024

Wordy title, simple example:

x = data.table(id = "aaa")
y = data.frame(id = "bbb")
class(y) = c("tbl_df", "tbl", "data.frame")
x[!y, on = "id"]
# Error in bmerge(i, x, leftcols, rightcols, roll, rollends, nomatch, mult,  : 
#   Internal error in forderReuseSorting: reuseSorting set to TRUE but DT is not a data.table. Please report to the data.table issues tracker.

No error on 1.15.4. No error if y is just plain data.frame.

It's the bmerge() code here that tries to call the new routine on the non-data.frame:

SEXP oSxp = PROTECT(forderReuseSorting(idt, icolsArg, /* retGrpArg= */ScalarLogical(FALSE), /* retStatsArg= */ScalarLogical(FALSE), /* sortGroupsArg= */ScalarLogical(TRUE), ascArg, /* naArg= */ScalarLogical(FALSE), /* reuseSortingArg= */ScalarLogical(TRUE))); protecti++;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants