raminqaf commented on code in PR #30185:
URL: https://github.com/apache/flink/pull/30185#discussion_r4752047361


##########
docs/data/functions/conditional/least.yml:
##########
@@ -77,7 +77,7 @@ examples:
       | apple | Banana | Banana        |
 
   - title: A NULL argument
-    description: Any NULL argument returns NULL.
+    description: "`LEAST` returns NULL if any argument is NULL."

Review Comment:
   This true. But the not returning `NULL` is because of the invalid input of 
`1/0`. This will be the case for `LEAST(CAST(NULL AS INT), 1/0)`, and so does 
`ABS(x / 0)` with one argument.
   This holds for most of the functions. Maybe we can add this to the Function 
Basic page instead of each function.
   
   The query you mentioned fails in CodeGen. `CodeGenException: Unsupported 
casting from NULL to INT.` I would assume to get a validation error on it: 
`Fails: / by zero`



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