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

Move snapshot files to enumerated paths #613

Merged
merged 1 commit into from
Jun 22, 2023

Commits on Jun 21, 2023

  1. Move snapshot files to enumerated paths

    MetricFlow has sets of query planning and dialect rendering tests
    that compare against snapshot files representing plans and SQL
    queries. For dialect-specific constructs, we rely on a dialect-
    specific snapshot file. For historical reasons, these were stored
    in a path location bound to the SqlClient class used in the tests.
    
    Now that we are moving to a model where we delegate this work to
    dbt adapters, we will be re-using the same SqlClient class for
    multiple dialects. More generally, we'd like to separate our
    warehouse client from our dialect operations. So this commit
    moves the relevant files to a path based on the target engine
    property of the SqlClient interface. Since our dialects currently
    map on to supported engines 1:1, we can do this for now, and
    eventually convert to dialect-only differentiation in the future.
    tlento committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d45f27e View commit details
    Browse the repository at this point in the history