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

[Feature request] Unnest array support #8280

Open
itestyoy opened this issue May 20, 2024 · 0 comments
Open

[Feature request] Unnest array support #8280

itestyoy opened this issue May 20, 2024 · 0 comments

Comments

@itestyoy
Copy link

Hi! We use BigQuery and work with arrays.

We try to define models such as:

cube('a', {
     sql: `unnest(metrics)`,
     ...
});
cube('b', {
     joins: {
          a: {
              relationship: 'one_to_many',
              sql: `(true)`
           }
      },
      ...
});

The generated SQL looks like:

LEFT JOIN (unnest(metrics)) AS a ON (true)

and BigQuery throws an error:

Expected keyword JOIN but got ")" at [5:37]

Feature request: Add a check if the SQL is unnest(..) and do not wrap it with additional brackets.

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

No branches or pull requests

1 participant