Skip to content

BigQuery support (LIKE ANY|SOME UNNEST) #104

Description

@imathews

When using quantified like operators in BigQuery, we need to use the form LIKE ANY UNNEST(<array>) (docs)

E.g.:

SELECT * FROM (
  SELECT 'dog' as word 
) sub 
WHERE word LIKE ANY UNNEST(ARRAY['d%'])

Currently, this yields a parsing error in this library.

This is different from postgres, where we can just do LIKE ANY <array> (in BQ, this would be a syntax error)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions