akurmustafa commented on code in PR #13497:
URL: https://github.com/apache/datafusion/pull/13497#discussion_r1855298709


##########
datafusion/sqllogictest/test_files/order.slt:
##########
@@ -1260,3 +1260,34 @@ limit 2;
 
 statement ok
 drop table ordered_table;
+
+query TT
+EXPLAIN SELECT
+    CASE
+        WHEN name = 'name1' THEN 0.0
+        WHEN name = 'name2' THEN 0.5
+    END AS a
+FROM (
+    SELECT 'name1' AS name
+    UNION ALL
+    SELECT 'name2'
+)
+ORDER BY a DESC;

Review Comment:
   Sure, I have added a new test in this 
[commit](https://github.com/apache/datafusion/pull/13497/commits/fa9284a6d8c95073e53a0fb38760f7cf3056ed5d).
 Prior to this fix, we would get nondeterministic results.



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