comphead opened a new issue, #20034:
URL: https://github.com/apache/datafusion/issues/20034

   ### Is your feature request related to a problem or challenge?
   
   https://github.com/apache/datafusion/pull/20006 now supports `negate` 
function for Spark, however it should also consider ANSI mode 
   
   ```
   /// <https://spark.apache.org/docs/latest/api/sql/index.html#negative>
   ///
   /// Returns the negation of input (equivalent to unary minus)
   /// Returns NULL if input is NULL, returns NaN if input is NaN.
   ///
   /// TODOs:
   ///  - Spark's ANSI-compliant dialect, when off (i.e. 
`spark.sql.ansi.enabled=false`),
   ///    negating the minimal value of a signed integer wraps around.
   ///    For example: negative(i32::MIN) returns i32::MIN (wraps instead of 
error).
   ///    This is the current implementation (legacy mode only).
   ///  - Spark's ANSI mode (when `spark.sql.ansi.enabled=true`) should throw an
   ///    ARITHMETIC_OVERFLOW error on integer overflow instead of wrapping.
   ///    This is not yet implemented - all operations currently use wrapping 
behavior.
   ```
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### 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]


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

Reply via email to