Skip to content

GForce fails to do overflow checks for integer64 #7574

@MichaelChirico

Description

@MichaelChirico

Related to #7571.

DT = data.table(i = c(1L, 1L), x = lim.integer64()[2L])

DT[, sum(x), by=i]
#        i    V1
#    <int> <i64>
# 1:     1    -2
DT[, base::sum(x), by=i]
#        i    V1
#    <int> <i64>
# 1:     1  <NA>
# Warning message:
# In sum.integer64(c(NaN, NaN), na.rm = FALSE) :
#   NAs produced by integer64 overflow

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions