Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Feb 6, 2025

Description of Changes

If an error occurs during query optimization or execution of the initial subscription, we return that error to the client.

This patch also simplifies the subscription compilation code, particularly join subscriptions.

It also compiles a subscription once and caches the plan for reuse, as was the case for the previous subscription api. This removes superfluous error checks during subscription update.

API and ABI breaking changes

None

Expected complexity level and risk

3

Updates some type signatures that permeate the codebase, but we also have a lot of test coverage over this part of the code.

Testing

This is a refactor. All previous tests apply.

@mamcx mamcx self-requested a review February 6, 2025 15:27
Compiles a subscription once and caches the plan for reuse.
This removes superfluous error checks during subscription update.
@joshua-spacetime joshua-spacetime force-pushed the joshua/sub-error-handling branch from 9a780bb to 75ca5a4 Compare February 6, 2025 17:56
Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshua-spacetime joshua-spacetime changed the title Simplify subscription error handling Handle optimization and execution errors on initial subscription Feb 6, 2025
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Feb 6, 2025
Merged via the queue into master with commit 75ab91d Feb 6, 2025
14 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/sub-error-handling branch February 6, 2025 19:37
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.

3 participants