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

Remove support for async queries from SqlClient #589

Merged
merged 2 commits into from
Jun 10, 2023

Conversation

tlento
Copy link
Contributor

@tlento tlento commented Jun 9, 2023

MetricFlow is moving in the direction of providing a single thread for query
compilation and dispatch, and leaving all concurrency concerns to calling
applications. We are doing this in part to streamline and simplify our current
interfaces, and in part to make sure MetricFlow can easily integrate with
external libraries, like dbt adapters.

We may choose to revisit this decision at a later time, but for now we will be
removing all support for async query methods.

This PR also removes support for the existing query cancel methods, as those were
largely tied to the async query implementations. There are other options for
supporting cancelling running queries, but until we cut over the MetricFlow core
package to use dbt adapters for query dispatch we will not support this functionality.

The current implementation of query cancellation relies heavily on
the async query interfaces, which we are removing in favor of
making MetricFlow a single threaded single query execution library.
We may need to bring the cancel method back in some form, but it'll
be more similar to what we see in libraries like the dbt adapter
library, where each client implements a "cancel all queries for
a given connection" kind of interface.

This commit removes the cancel method to streamline the process of
removing the async query and async execute commands.
Copy link
Contributor Author

tlento commented Jun 9, 2023

@github-actions
Copy link

github-actions bot commented Jun 9, 2023

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

We will not be using async query dispatch mechanisms going forward,
so this removes the relevant methods and all supporting methods and
classes.
@tlento tlento force-pushed the remove-async-query-support branch from 069fd0d to fa2c9e5 Compare June 9, 2023 01:23
@tlento tlento requested review from plypaul and WilliamDee June 9, 2023 01:23
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 01:24 — with GitHub Actions Inactive
@tlento tlento had a problem deploying to DW_INTEGRATION_TESTS June 9, 2023 01:24 — with GitHub Actions Failure
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 01:24 — with GitHub Actions Inactive
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 01:24 — with GitHub Actions Inactive
@tlento tlento had a problem deploying to DW_INTEGRATION_TESTS June 9, 2023 01:24 — with GitHub Actions Failure
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 17:06 — with GitHub Actions Inactive
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 17:06 — with GitHub Actions Inactive
@tlento tlento had a problem deploying to DW_INTEGRATION_TESTS June 9, 2023 17:06 — with GitHub Actions Failure
@tlento tlento had a problem deploying to DW_INTEGRATION_TESTS June 9, 2023 17:06 — with GitHub Actions Failure
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 17:06 — with GitHub Actions Inactive
@tlento tlento had a problem deploying to DW_INTEGRATION_TESTS June 9, 2023 18:10 — with GitHub Actions Failure
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 18:10 — with GitHub Actions Inactive
@tlento tlento had a problem deploying to DW_INTEGRATION_TESTS June 9, 2023 18:10 — with GitHub Actions Failure
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 18:10 — with GitHub Actions Inactive
@tlento tlento temporarily deployed to DW_INTEGRATION_TESTS June 9, 2023 18:10 — with GitHub Actions Inactive
Base automatically changed from support-tags-in-query to main June 10, 2023 01:10
@tlento tlento merged commit 9583f6f into main Jun 10, 2023
@tlento tlento deleted the remove-async-query-support branch June 10, 2023 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants