Skip to content

Conversation

@kryvashek
Copy link

Rationale for this change

This patch adds support for LIMIT clause in DELETE statements.

What changes are included in this PR?

This patch changes plan for delete statements from "DML <- Table Scan" into "DML <- Limit <- Table Scan" when a LIMIT clause was provided in the DELETE statement.

Are these changes tested?

Changes were tested manually and also a related test was added into datafusion/sql/tests/sql_integration.rs.

Are there any user-facing changes?

Yes, there are. But they are not breaking (unless someone was using LIMIT clause in a DELETE statement to intentionally get an error).

@github-actions github-actions bot added the sql label Sep 24, 2025
@kryvashek kryvashek changed the title Sakhart/feat/adding delete limit support adding delete limit support Sep 24, 2025
@askalt askalt requested review from askalt and rudlorenz September 24, 2025 08:59
@kryvashek kryvashek self-assigned this Sep 24, 2025
Copy link

@askalt askalt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@rudlorenz rudlorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kryvashek kryvashek merged commit 8821e01 into tarantool:release-42.0.0 Sep 30, 2025
19 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants