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

Use the connection defined by WithRawSQLURL for backfill operations #320

Closed
wants to merge 4 commits into from

Conversation

andrew-farries
Copy link
Collaborator

#315 added the option to use a separate connection for raw SQL operations.

The same arguments about using a separate, more restrictive connection to run raw SQL operations also apply to running up and down SQL during backfill operations.

This PR changes the backfill operation to use the alternative connection if defined.

Roles apply to the instance so we don't want multiple tests trying to
create the same role.
Ensure that the backfills use the raw sql connection if set.
@andrew-farries andrew-farries marked this pull request as draft March 15, 2024 17:17
@andrew-farries
Copy link
Collaborator Author

@exekias I don't think this PR makes sense, as the backfill will ultimately be performed by the code in the trigger.

Altering the connection used to call the backfill method won't affect what the trigger is able to run even if there is a proxy on the connection that starts the backfill process; the only code run by that connection directly is the SELECT.... statements executed by the batcher.

I think the PR should be closed.

@exekias
Copy link
Member

exekias commented Mar 19, 2024

SGTM!

@andrew-farries andrew-farries deleted the rawsql-conn-for-backfills branch March 22, 2024 17:35
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