Skip to content

Conversation

hedyyytang
Copy link
Collaborator

@hedyyytang hedyyytang commented Aug 14, 2025

revert changes introduced in - 9bbc63a.

It breaks our existing UPDATE statement with LIMIT Clause.

Before the fix, row ids are reindexed after the LIMIT operation, which causes duplicate key error because the original row is not excluded from the unique key comparison

Screenshot 2025-08-14 at 4 39 36 PM

After the fix, UPDATE statement with LIMIT 1 clause is executed correctly

Tests
Added unit tests

@hedyyytang hedyyytang changed the title fixes the limit operation fixes duplicate key error when limit operation is applied Aug 14, 2025
@hedyyytang hedyyytang changed the title fixes duplicate key error when limit operation is applied fixes duplicate key error when limit operation is applied with UPDATE statement Aug 14, 2025
@hedyyytang hedyyytang force-pushed the fix-limit-operation branch from e93fcd3 to e03357a Compare August 14, 2025 21:06
@aaronm67 aaronm67 merged commit 4cb334b into master Aug 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants