Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #25005 +/- ##
==========================================
- Coverage 81.90% 81.90% -0.01%
==========================================
Files 1134 1134
Lines 425156 425151 -5
Branches 425156 425151 -5
==========================================
- Hits 348234 348217 -17
- Misses 56281 56292 +11
- Partials 20641 20642 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Should this PR really close the issue ? |
|
Agreed—the issue should remain open for full bounded DELETE support. I updated the PR description so this no longer closes #24998. |
|
The only remaining failing check is |
alamb
left a comment
There was a problem hiding this comment.
Thank you for the contribution @ryux1 and @martin-g
However, I am not sure about this one
DELETE with LIMIT currently appears to plan successfully, but the table provider receives only the filters and deletes every matching row. Rejecting the unsupported clause prevents a bounded delete from silently becoming an unbounded one and matches the existing UPDATE LIMIT behavior.
Can you please provide a reproducer that shows this bug behavior? The code in this PR appears to show a limt passed to the input.
It seems like maybe your problem is somewhere else , but just forbidding such deletes and removing the planning code doesn't see right 🤔
Which issue does this PR close?
Rationale for this change
DELETE with LIMIT currently appears to plan successfully, but the table provider receives only the filters and deletes every matching row. Rejecting the unsupported clause prevents a bounded delete from silently becoming an unbounded one and matches the existing UPDATE LIMIT behavior.
What changes are included in this PR?
What is the testing strategy for this PR?
Are there any user-facing changes?
Yes. DELETE statements containing LIMIT now return a not-implemented planning error instead of accepting the limit and potentially deleting every matching row. There is no public Rust API change.
Implementation and validation were completed with AI coding assistance under the account owner’s direction.