Skip to content

'on' clause fails on white spaces around operators and on operators in variable names #3092

@MarkusBonsch

Description

@MarkusBonsch

The issue originally popped up her : #2931.
There are two issues from my perspective with 'on'.

First:
White spaces around operators make it fail:

DT <- data.table(a = 1:3, b=1:3)
i <- data.table(ai = 1:3, bi = 1:3)
DT[i, on = "a >= ai"]
## throws error

Second:
Column names including operators make it fail

DT <- data.table(`a>=` = 1:3, b = 1:3)
i   <- data.table(ai = 1:3, bi = 1:3)
DT[i, on = "`a>=`==ai"]
## throws error

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions