AdamGS commented on issue #22581:
URL: https://github.com/apache/datafusion/issues/22581#issuecomment-4698548937

   I actually don't think its fixed? Couldn't reproduce @raman20 comment above.
   Funnily enough - DuckDB seems to handle the return type the other way around.
   ```sql
   -- 8 bytes base, 4 bytes value
   select log(16777217::DOUBLE, 2.0::FLOAT);
   ┌─────────────────────────────────────────────────────┐
   │ log(CAST(16777217 AS "DOUBLE"), CAST(2.0 AS FLOAT)) │
   │                       double                        │
   ├─────────────────────────────────────────────────────┤
   │                                0.041666666517376175 │
   └─────────────────────────────────────────────────────┘
   
   -- 4 bytes base, 8 bytes value
   select log(16777217::FLOAT, 2.0::DOUBLE);
   ┌─────────────────────────────────────────────────────┐
   │ log(CAST(16777217 AS FLOAT), CAST(2.0 AS "DOUBLE")) │
   │                       double                        │
   ├─────────────────────────────────────────────────────┤
   │                                 0.04166666666666667 │
   └─────────────────────────────────────────────────────┘
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to