comphead opened a new issue, #7121: URL: https://github.com/apache/arrow-datafusion/issues/7121
### Describe the bug CAST Decimal gives incorrect result ### To Reproduce Spark/PG ``` select cast(6.4053151420411946063694043751862251568 as decimal(38,37)) 6.4053151420411946063694043751862251568 ``` DF ``` ❯ select cast(6.4053151420411946063694043751862251568 as decimal(38,37)); +-----------------------------------------+ | Float64(6.405315142041195) | +-----------------------------------------+ | 6.4053151420411954619510965656866521088 | +-----------------------------------------+ ``` ### Expected behavior Should cast correctly ### Additional context _No response_ -- 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]
