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

Fail algorithm when sink cannot be flushed #59241

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nyalldawson
Copy link
Collaborator

Fixes #59237

I don't particularly like this fix, because it requires that EVERY algorithm which uses feature sinks (ie, basically every vector algorithm) should adapt d4d302d manually. Ideas welcome for better approaches...

This at least reports errors which occur when flushing any buffered
features to the user. (Ideally, this would result in a
QgsProcessingException being raised so that the algorithm explicitly
fails, but we can't do that here as throwing exceptions is prohibited
within destructors)

Refs qgis#59237
@github-actions github-actions bot added this to the 3.42.0 milestone Oct 28, 2024
Copy link

github-actions bot commented Oct 28, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 907aeb6)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 907aeb6)

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.

extract by expression save to geopackage creates empty layer when fid is not unique
3 participants