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

Allow post_operations block to execute even on failure #1862

Open
Kulja opened this issue Oct 16, 2024 · 0 comments
Open

Allow post_operations block to execute even on failure #1862

Kulja opened this issue Oct 16, 2024 · 0 comments

Comments

@Kulja
Copy link

Kulja commented Oct 16, 2024

I guess this would be a feature request since I don't know how to achieve this. Is there a way to allow post_operations block to run even if the select statement fails? As far as know there isn't, it won't run if there are any errors.

Is there any other way to ensure some SQL execution after the select statement fails?

config {
  type: "table"
}

pre_operations {
  SELECT 1 AS one; -- this runs just fine, no errors
}

post_operations {
  SELECT 3 AS three; -- how can I make sure this runs even if 'SELECT 2 AS two' fails
}

-- let's assume this fails for whatever reason
SELECT 2 AS two
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants