fresh-borzoni opened a new pull request, #265:
URL: https://github.com/apache/fluss-rust/pull/265

   ## Summary
   
   Add decimal type support to C++ bindings
                                                                                
                                                                                
                                                                                
        
     Adds `DECIMAL(p, s)` support to the C++ bindings, matching the Python 
bindings' schema-driven pattern.                                                
                                                                                
             
     
     ### Write path                                                             
                                                                                
                                                                                
        
     - User calls `row.SetDecimal(idx, "123.45")` — just a string, no 
precision/scale needed
     - String crosses FFI as-is (`DATUM_TYPE_DECIMAL_STRING`)
     - Rust parses via `BigDecimal::from_str`, looks up `(p, s)` from the 
schema, validates, and creates the `Decimal`
   
     ### Read path
     - Arrow `Decimal128` values come back as `DecimalI64` (compact, p≤18) or 
`DecimalI128` (non-compact)
     - `Datum::DecimalToString()` formats them for display
   
   


-- 
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]

Reply via email to