Never a different answer than DuckDB
A rewritten statement returns what native DuckDB returns: the same rows, the same order where native guarantees one, the same column names and the same column types. Integer and DECIMAL aggregates are bit-exact, with 128-bit sums on the device.
Where “the same as native” is not definable, the shape is never rewritten: sum(DOUBLE), which DuckDB itself computes in an order-dependent way, and an ORDER BY … LIMIT k whose first k rows tie, which goes back to DuckDB.