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

Merged
merged 5 commits into from
Nov 12, 2024
Merged

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 7525fcc)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 7525fcc)

@nyalldawson
Copy link
Collaborator Author

Ok, this is good to go now

@troopa81 troopa81 merged commit 2889aa3 into qgis:master Nov 12, 2024
31 checks passed
@nyalldawson nyalldawson deleted the fix_59237 branch November 12, 2024 11:01
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