Skip to content

Use the QUALIFY clause to simplify filter() actions on windows #676

Description

@MichaelChirico

BigQuery supports a WHERE analog that works on window statements:

https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#qualify_clause

Typically when trying to subset data according to a condition on a window, we need to first assign a temporary variable, then WHERE on it, but using QUALIFY directly instead will simplify translations.

(filing this quickly now, I can add some reprex if requested)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions