FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

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

Description

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++;

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL