-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add Trino Support #944
Merged
Merged
Add Trino Support #944
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit, authored by @sarbmeetka, includes all of the material changes relevant for adding support for Trino to MetricFlow. Specifically, this includes the SqlQueryPlanRenderer for Trino and integration in the CLI and unit test suite with the dbt-trino adapter. All other changes - particularly those to the contents of test queries - were made in order to bring our internal test SQL in line with Trino's ANSI-compliance requirements. The original PR (#810) commit stack has been consolidated into this one, and a separate commit with the auto-generated snapshot files for the Trino test cases. This has been done to make isolating fixes a bit simpler for CI testing prior to merge.
This is a one-shot re-do of the snapshot generation for Trino test cases originally done throughout @sarbmeetka's PR (#810). As explained earlier, these were split out to make it easier to isolate the non-automated changes for any necessary updates in CI testing.
tlento
added
the
Run Tests With Other SQL Engines
Runs the test suite against the SQL engines in our target environment
label
Dec 19, 2023
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 02:46 — with
GitHub Actions
Inactive
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 02:46 — with
GitHub Actions
Inactive
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 02:46 — with
GitHub Actions
Inactive
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 02:46 — with
GitHub Actions
Inactive
github-actions
bot
removed
the
Run Tests With Other SQL Engines
Runs the test suite against the SQL engines in our target environment
label
Dec 19, 2023
This adds a Trino test job to the MetricFlow SQL Engine Tests action. Trino can run its tests in a service container without need for an external environment, however, the service container execution for these tests is materially slower in CI runs than Postgres. Rather than delay PR-blocking unit test completion we put the Trino test suite execution in the label-initiated SQL Engine test action. This allows us to move Trino to cloud-hosted execution, if we should care to do so, but for the time being we will stick with the in-memory service container.
tlento
added
the
Run Tests With Other SQL Engines
Runs the test suite against the SQL engines in our target environment
label
Dec 19, 2023
tlento
had a problem deploying
to
DW_INTEGRATION_TESTS
December 19, 2023 02:57 — with
GitHub Actions
Failure
tlento
had a problem deploying
to
DW_INTEGRATION_TESTS
December 19, 2023 02:57 — with
GitHub Actions
Failure
tlento
had a problem deploying
to
DW_INTEGRATION_TESTS
December 19, 2023 02:57 — with
GitHub Actions
Failure
tlento
had a problem deploying
to
DW_INTEGRATION_TESTS
December 19, 2023 02:57 — with
GitHub Actions
Failure
Somehow this got removed in the various PR manipulations, so local tests were passing but CI (and fresh installs) will fail.
tlento
added
Run Tests With Other SQL Engines
Runs the test suite against the SQL engines in our target environment
and removed
Run Tests With Other SQL Engines
Runs the test suite against the SQL engines in our target environment
labels
Dec 19, 2023
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 03:06 — with
GitHub Actions
Inactive
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 03:06 — with
GitHub Actions
Inactive
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 03:06 — with
GitHub Actions
Inactive
tlento
temporarily deployed
to
DW_INTEGRATION_TESTS
December 19, 2023 03:06 — with
GitHub Actions
Inactive
github-actions
bot
removed
the
Run Tests With Other SQL Engines
Runs the test suite against the SQL engines in our target environment
label
Dec 19, 2023
marcodamore
approved these changes
Dec 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #207
This is a mechanical re-work of #810 , which was submitted by @sarbmeetka . For details on the Trino-related changes, please see @sarbmeetka 's excellent description on the original PR.
This PR is necessary because we needed to run all of our engine tests on the output, but we cannot access secrets in the environment from a PR initiated off of a fork from a community member. While this seems like something we should be able to adjust, the expedient path at this time is to simply re-work the PR separately here.
There are three primary differences between this PR and the original in #810
Of these, the third change is the only thing that is new from the original PR.