Skip to content

Apache DataFusion SQL Query Engine

Add negative test for SORT BY (#5254)

Andrew Lambf75d25fec2c1
diff --git a/datafusion/core/tests/sqllogictests/test_files/order.slt b/datafusion/core/tests/sqllogictests/test_files/order.slt
index 0263781c58..f6477cb713 100644
--- a/datafusion/core/tests/sqllogictests/test_files/order.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/order.slt
@@ -254,6 +254,9 @@ ORDER BY time;
2 2022-01-01T01:00:00
3 2022-01-02T00:00:00
+## SORT BY is not supported
+statement error DataFusion error: This feature is not implemented: SORT BY
+select * from t SORT BY time;
## Cleanup
statement ok