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 2022/04/29 16:14:18 UTC

[GitHub] [arrow-datafusion] andygrove opened a new issue, #2380: Support type-coercion from `Decimal` to `Float64`

andygrove opened a new issue, #2380:
URL: https://github.com/apache/arrow-datafusion/issues/2380

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   ``` rust
   #[tokio::test]
   async fn sql_abs_decimal() -> Result<()> {
       let ctx = SessionContext::new();
       register_decimal_csv_table_by_sql(&ctx).await;
       let sql = "SELECT abs(c1) from decimal_simple";
       let actual = execute_to_batches(&ctx, sql).await;
   ```
   
   Fails with
   
   ```
   Coercion from [Decimal(10, 6)] to the signature Uniform(1, [Float64, Float32]) failed.
   ```
   
   **Describe the solution you'd like**
   I would like the decimal to be coerced into a floating-point value.
   
   **Describe alternatives you've considered**
   None
   
   **Additional context**
   None
   


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

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


[GitHub] [arrow-datafusion] comphead commented on issue #2380: Support type-coercion from `Decimal` to `Float64`

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

   @andygrove Please check the PR 


-- 
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] andygrove closed issue #2380: Support type-coercion from `Decimal` to `Float64`

Posted by GitBox <gi...@apache.org>.
andygrove closed issue #2380: Support type-coercion from `Decimal` to `Float64`
URL: https://github.com/apache/arrow-datafusion/issues/2380


-- 
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] comphead commented on issue #2380: Support type-coercion from `Decimal` to `Float64`

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

   Opening new PR to resolve commit history


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