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

Better error message when on= columns wrong way around #1376

Closed
mattdowle opened this issue Oct 5, 2015 · 0 comments
Closed

Better error message when on= columns wrong way around #1376

mattdowle opened this issue Oct 5, 2015 · 0 comments
Assignees
Milestone

Comments

@mattdowle
Copy link
Member

require(data.table)
X = data.table(a=1:3,b=4:6,c=c("foo","bar","baz"))
Y = data.table(A=2:4, B=5:7)
X[Y, on=c(A="a")]
# Error in forderv(x, by = rightcols) : 
#   'by' value -2147483648 out of range [1,3]
X[Y, on=c(a="A")]
#    a  b   c B
#1: 2  5 bar 5
#2: 3  6 baz 6
#3: 4 NA  NA 7
@mattdowle mattdowle added this to the v1.9.8 milestone Oct 5, 2015
@arunsrinivasan arunsrinivasan self-assigned this Oct 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants