Skip to content

Error processing job with UNNEST and query parameters #234

@Lockeid

Description

@Lockeid

Steps to reproduce:

> docker run -p 9060:9050 -it ghcr.io/goccy/bigquery-emulator:latest --project=test --log-level=debug

# Separate window
> bq --api http://0.0.0.0:9060 query --project_id=test --parameter='states:ARRAY<STRING>:["WA", "WI", "WV", "WY"]' "SELECT * FROM UNNEST(@states)"
BigQuery error in query operation: Error processing job 'test:bqjob_r15b2cf4b587ab4e9_0000018b19208f63_1': failed to analyze: INVALID_ARGUMENT: Values referenced in UNNEST must be arrays. UNNEST contains expression of type
INT64 [at 1:22]

I don't know if the issue comes from here or from zetasql

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions