Skip to content

Assigning using := on a join is throwing an "..allow.cartesian" error in 1.9.3 #837

Closed

Description

@rsaporta

The code below works fine in 1.9.2 and broke in 1.9.3

:= is throwing the "rerun with allow.cartesian=TRUE" error

DT1 <- data.table(key="id", id=c(1:3, 1:3))
DT2 <- data.table(key="id", id=seq(10), name=LETTERS[1:10])


DT1[DT2, name := i.name]

Activity

  1. changed the title [-]`:=` / allow.cartesian broken in 1.9.3[/-] [+]Assigning using `:=` on a join is throwing an "..allow.cartesian" error in 1.9.3[/+] on Sep 29, 2014
  2. arunsrinivasan commented on Sep 29, 2014

    @arunsrinivasan
    Member

    I think this is a duplicate of #800.

  3. rsaporta commented on Sep 29, 2014

    @rsaporta
    ContributorAuthor

    Possibly. The discussion on #800 appeared to be more of FR / understanding, but the root issue seems the same.

    It appears that notjoin in [.data.table is failing to resolve to TRUE in update-type calls

  4. arunsrinivasan commented on Sep 29, 2014

    @arunsrinivasan
    Member

    @rsaporta right. It's not a FR. Ed marked it as such, and I just forgot to change. In the text I'd written:

    "However, on your first point, even though i has duplicate values (and therefore the error message is right), the fact that the end result will never be greater than nrow(x) warrants for that error message to be a bug."

    Will change it to a bug, and close this (this post will anyways be referred to in the other post).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions