cool9850311 commented on PR #27474:
URL: https://github.com/apache/datafusion/pull/27474#issuecomment-7079353399

   Rebased and pushed, with the `casts.rs` fix as its own commit (`8d4db4cac`) 
so the change
   since your review stands alone; the numbers are in the inline thread.
   
   "Are there any user-facing changes?" now covers the type change you asked 
about: a
   `Decimal128` column whose scale is 19 or more has `Decimal256(s + 20, s)` as 
its common
   type with an integer, where it stayed `Decimal128(38, s)`, so `COALESCE(d, 
0)`, a `CASE`
   arm, a `UNION ALL` branch, a `CREATE TABLE AS` and a client reading the 
schema all see the
   wider type. The values are unchanged, and `Decimal128(38, s)` is the type 
that had no room
   for an `Int64`'s digits. The threshold is exactly a scale of 19 against an 
`Int64`: an
   `Int8` at that scale still fits `Decimal128(38, 19)`.
   
   On the pushed commit: `cargo clippy --all-targets --all-features -- -D 
warnings`,
   `expr-common`'s 251 unit tests, all 309 sqllogictest files, and the extended 
workspace run
   (61 binaries, 13,600 tests).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to