You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/04/26 13:29:33 UTC

[GitHub] [arrow-datafusion] alamb opened a new issue #174: Support DataType::Decimal(15, 2) in TPC-H benchmark

alamb opened a new issue #174:
URL: https://github.com/apache/arrow-datafusion/issues/174


   *Note*: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11536
   
   Currently converting the Float64 to Decimal(15, 2) fails with:
   
   Error: Plan("\'Int64 - Decimal(15, 2)\' can\'t be evaluated because there isn\'t a common type to coerce the types to")
   
   FYI [~MikeSeddonAU]
   
   


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

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



[GitHub] [arrow-datafusion] liukun4515 commented on issue #174: Support DataType::Decimal(15, 2) in TPC-H benchmark

Posted by GitBox <gi...@apache.org>.
liukun4515 commented on issue #174:
URL: https://github.com/apache/arrow-datafusion/issues/174#issuecomment-1022800665


   @alamb  this issue can be closed.
   The cast/try_cast has been implemented.
   We can cast float to decimal or decimal to float.


-- 
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: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow-datafusion] houqp commented on issue #174: Support DataType::Decimal(15, 2) in TPC-H benchmark

Posted by GitBox <gi...@apache.org>.
houqp commented on issue #174:
URL: https://github.com/apache/arrow-datafusion/issues/174#issuecomment-1022872085


   :tada: 


-- 
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: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow-datafusion] houqp closed issue #174: Support DataType::Decimal(15, 2) in TPC-H benchmark

Posted by GitBox <gi...@apache.org>.
houqp closed issue #174:
URL: https://github.com/apache/arrow-datafusion/issues/174


   


-- 
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: github-unsubscribe@arrow.apache.org

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



[GitHub] [arrow-datafusion] liukun4515 commented on issue #174: Support DataType::Decimal(15, 2) in TPC-H benchmark

Posted by GitBox <gi...@apache.org>.
liukun4515 commented on issue #174:
URL: https://github.com/apache/arrow-datafusion/issues/174#issuecomment-1022801281


   ```
   ❯ select cast(12.33 as decimal(10,2));
   +----------------------------------------+
   | CAST(Float64(12.33) AS Decimal(10, 2)) |
   +----------------------------------------+
   | 12.33                                  |
   +----------------------------------------+
   1 row in set. Query took 0.006 seconds.
   ```


-- 
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: github-unsubscribe@arrow.apache.org

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