Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2471: correctly handle offset passed by ::UpdateSegment, and handle it earlier to clean up code #2723

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

Mytherin
Copy link
Collaborator

@Mytherin Mytherin commented Dec 2, 2021

This fixes a crash that occurred in #2471. This crash would occur when running an UPDATE segment with a FROM clause that resulted in the same source vector updating multiple different target vectors. The offset was then used to specify which segment of the vector should be used to perform the update, but this was not properly used throughout the UpdateSegment::Update. We resolve this by using the offset earlier to slice the vector. This simplifies the implementation and resolves the bug.

@Mytherin Mytherin linked an issue Dec 2, 2021 that may be closed by this pull request
2 tasks
@Mytherin Mytherin merged commit eacccc7 into duckdb:master Dec 3, 2021
@Mytherin Mytherin deleted the issue2471 branch December 3, 2021 14:23
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.

Python: In-memory duckdb keep increasing indefinitely
1 participant