martin-g commented on code in PR #25005:
URL: https://github.com/apache/datafusion/pull/25005#discussion_r4092816425
##########
datafusion/sql/tests/sql_integration.rs:
##########
@@ -850,6 +850,17 @@ fn plan_delete() {
);
}
+#[rstest]
+#[case("delete from person limit 1")]
+#[case("delete from person where id = 1 limit 1")]
+fn plan_delete_rejects_limit(#[case] sql: &str) {
+ let err = logical_plan(sql).expect_err("DELETE LIMIT should be rejected");
+ assert_eq!(
+ err.strip_backtrace(),
+ "This feature is not implemented: Delete-limit clause not supported"
Review Comment:
```suggestion
"DataFusion error: Error during planning: Delete-limit clause not
yet supported"
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]