Skip to content

rolling joins with roll=TRUE and value -Inf #1007

@arunsrinivasan

Description

@arunsrinivasan

Discovered due to #1006.

require(data.table) ## 1.9.5
DT = data.table(x=c(-Inf, 3), y=1:2, key="x")
#       x y
#1: -Inf 1
#2:    3 2

# wrong result.. should be 2,1
DT[J(2), roll=TRUE]
#    x  y
#1: 2 NA

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions