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


   **Describe the bug**
   
   In the mysql and pg database, the result of `abs` function is long/bigint.
   
   But the result in the datafusion is 
   ```
   ❯ select ABS(-123);
   +--------------+
   | Float64(123) |
   +--------------+
   | 123          |
   +--------------+
   1 row in set. Query took 0.002 seconds.
   ```
   
   
   
   
   **To Reproduce**
   execute the sql
   ```
   select ABS(-12345);
   ```
   
   
   
   **Expected behavior**
   the result type should be the int64 or bigint.
   
   ❯ select ABS(-12345);
   +----------------+
   | Int64(12345) |
   +----------------+
   | 12345          |
   +----------------+
   
   **Additional context**
   
   


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


Reply via email to