Skip to content

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

Description

@badboy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions