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

Snowflake: Nested Pipelines #1655

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lloydtabb
Copy link
Collaborator

In Snowflake you can't use a view that contains a pipeline as a nest. Other dialects handle this with correlated subqueries over arrays. Unfortunately Snowflake doesn't support correlated subqueries.

Here is an example of a test that fails

         source: airports is snowflake.table('malloytest.airports') extend {
          measure: airport_count is count()

          view: pipe is {
            group_by: city, state
            aggregate: a is airport_count
          }
          -> {
            group_by: state
            aggregate: b is a.sum()
          }
        }

        run: airports -> {
          group_by: faa_region
          aggregate: airport_count
          nest: pipe
        }

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.

1 participant