Open bwlewis opened 2 years ago
Confirmed the bug -- the issue is here:
trimws()
is there for a case like on = .(a >= a)
.
I don't have a computer with me to play around with a fix for this... maybe the whitespace should be included in the regex for >=
instead?
Hmmm. I do understand spaces in names is bad-form but sometimes it is not easy to control.
In the non-equi join list syntax on = .(x >= y)
case, I think variable names with spaces should be escaped by back-ticks anyway (that is, a fix by documentation)? Then I wonder if trimws
is really necessary there?
it's necessary in the current form but definitely incorrect. I think that whole function could go for a refactor to operate on the parse tree rather than string representation.
Minimal example, tested on data.table Version: 1.14.0 and also 1.14.3 (from GitHub master, GithubSHA1: eed712ef45fd9198de6aa1ac1b672a7347253d18):
R session info: