Re: [I] decimal calculate overflow but not throw error [datafusion]

2025-06-15 Thread via GitHub
mmooyyii commented on issue #16406: URL: https://github.com/apache/datafusion/issues/16406#issuecomment-2975198860 https://github.com/apache/datafusion/blob/ca0b760af6137c0dbec8b07daa5f48e262420cb5/datafusion/functions-aggregate/src/sum.rs#L309 Use `*v = v.add_checked(x)?;` ? --

Re: [I] decimal calculate overflow but not throw error [datafusion]

2025-06-15 Thread via GitHub
mmooyyii commented on issue #16406: URL: https://github.com/apache/datafusion/issues/16406#issuecomment-2974920966 ``` use bigdecimal::num_bigint::BigInt; use bigdecimal::{BigDecimal}; use std::fs; fn main() { let f = fs::read_to_string("/tmp/decimal.csv").unwrap();