Daft icon indicating copy to clipboard operation
Daft copied to clipboard

Allow summing of Decimal128 types

Open jaychia opened this issue 7 months ago • 0 comments

Is your feature request related to a problem? Please describe.

Decimal128 should support the summation aggregation

import daft

df = daft.from_pydict({"foo": [1, 1, 2, 2, 3, 3]})
df = df.with_column("foo_decimal", df["foo"].cast(daft.DataType.decimal128(7, 2)))
df = df.sum("foo_decimal")

df.collect()

jaychia avatar Jul 17 '24 16:07 jaychia