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

Labeled metrics with dynamic labels result in SQL error due to UNNEST(NULL) #565

Open
badboy opened this issue Nov 30, 2022 · 0 comments
Open

Comments

@badboy
Copy link
Member

badboy commented Nov 30, 2022

originally reported by @MatthewTighe in chat.

Example metric: recent_synced_tabs.recent_synced_tab_shown

Looker link

Error:

Query execution failed: - Values referenced in UNNEST must be arrays. UNNEST contains expression of type INT64 at [11:18]

In the generated SQL I see:

LEFT JOIN UNNEST(NULL) AS metrics__metrics__labeled_counter__recent_synced_tabs_recent_synced_tab_shown ON metrics.document_id = metrics.document_id

I think this corresponds to one of these generated LookML parts:

Metrics with static labels, such as engine_tab.kills seem to work fine (Looker link).

cc @scholtzan

┆Issue is synchronized with this Jira Task

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