Skip to content

Commit fa9284a

Browse files
committed
Add new test case
Add a new test case
1 parent 458cf19 commit fa9284a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

datafusion/sqllogictest/test_files/order.slt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,3 +1291,18 @@ physical_plan
12911291
06)------ProjectionExec: expr=[name2 as name]
12921292
07)--------PlaceholderRowExec
12931293

1294+
query I
1295+
SELECT
1296+
CASE
1297+
WHEN name = 'name1' THEN 0.0
1298+
WHEN name = 'name2' THEN 0.5
1299+
END AS a
1300+
FROM (
1301+
SELECT 'name1' AS name
1302+
UNION ALL
1303+
SELECT 'name2'
1304+
)
1305+
ORDER BY a DESC;
1306+
----
1307+
0.5
1308+
0

0 commit comments

Comments
 (0)