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: Ensure meta_info is updated when an exception occurs #1230

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

baumandm
Copy link
Contributor

Basically, if a Trino query fails fast enough that the poll() function never runs successfully, the meta_info for the execution won't be captured, containing the Trino tracking URL. Something like "asdfg" as a query would trigger this because Trino doesn't need to do any metastore lookups before failing the query. Whereas queries that are slower to fail will go through 2 or more poll() iterations, and the successful ones will update the meta_info prior to the exception.

This PR fixes the issue by catching exceptions and updating the tracking URLs, as well as ensuring that on_statement_update() get a copy of meta_info when an exception occurs during the first poll()

@jczhong84 jczhong84 merged commit d902232 into pinterest:master Apr 26, 2023
@baumandm baumandm deleted the external/trino-user-error branch May 4, 2023 16:14
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
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