herry2038 opened a new pull request, #17562:
URL: https://github.com/apache/doris/pull/17562
   # Proposed changes
   
   Issue Number: close #17191
   
   ## Problem summary
   
   1. Decimal template class 's construction method  using strict convernion 
from double to int ,it lose data precision , using round instead .
   2. DecimalV2 's value 's scale is always 9, so when output to mysqlwriter, 
the to string function will lose data precision too, fix it .
   3. Add regression test 
regression-test/suites/cast_double_to_decimal/test_cast_double_to_decimal.groovy
 for the problem.
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [ ] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to