alamb commented on code in PR #15390:
URL: https://github.com/apache/datafusion/pull/15390#discussion_r2010747252

##########
datafusion/sqllogictest/test_files/case.slt:
##########
@@ -467,7 +467,18 @@ FROM t;
 ----
 [{foo: blarg}]
 
+query II
+SELECT v, CASE WHEN v != 0 THEN 10/v ELSE 42 END FROM (VALUES (0), (1), (2)) 
t(v)
+----
+0 42
+1 10
+2 5
 
+query II

Review Comment:
   I verified that this errors on main:
   
   ```
   > SELECT v, CASE WHEN v != 0 THEN 10/v ELSE 42 END FROM (VALUES (0), (1), 
(2)) t(v);
   +---+-------------------------------------------------------------------+
   | v | CASE WHEN t.v != Int64(0) THEN Int64(10) / t.v ELSE Int64(42) END |
   +---+-------------------------------------------------------------------+
   | 0 | 42                                                                |
   | 1 | 10                                                                |
   | 2 | 5                                                                 |
   +---+-------------------------------------------------------------------+
   3 row(s) fetched.
   Elapsed 0.002 seconds.
   
   > SELECT v, CASE WHEN v < 0 THEN 10/0 ELSE 1 END FROM (VALUES (1), (2)) t(v);
   Arrow error: Divide by zero error
   ```



-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to