Computes the sum of col across all partitions without collecting the full
dataset. When partitions are native-encoded, this avoids decoding string
columns entirely.
Examples
# \donttest{
s <- schema(x = float64())
sink <- table_sink(s, mode = "row_groups")
table_write(sink, 1L, data.frame(x = c(1.0, 2.0, 3.0)))
rg <- table_finalize(sink)
stream_sum(rg, "x")
#> [1] 6
# }