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

Existence of array parameters in query causes emulator server to stall #156

Closed
tumelowill opened this issue Feb 28, 2023 · 0 comments · Fixed by #178
Closed

Existence of array parameters in query causes emulator server to stall #156

tumelowill opened this issue Feb 28, 2023 · 0 comments · Fixed by #178
Labels
bug Something isn't working

Comments

@tumelowill
Copy link

tumelowill commented Feb 28, 2023

Existence of array parameters in query causes emulator server to stall

Steps to reproduce:

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

# In a seperate terminal
bq --api http://0.0.0.0:9050/ mk --project_id=test --dataset dataset1
bq --api http://0.0.0.0:9050/ query --project_id=test "create table dataset1.table_a(name string, tags array<string>)"
bq --api http://0.0.0.0:9050/ query --project_id=test "insert into dataset1.table_a (name, tags) values ('bob', array['a', 'b', 'c']);"

# Stalls after this one
bq --api http://0.0.0.0:9050/ query --project_id=test --parameter='inputs:ARRAY<STRING>:["a"]' "select * from dataset1.table_a, unnest(tags) tag where tag in unnest(@inputs)"

# Any attempts to talk to the emulator after this point timeout
@goccy goccy added the bug Something isn't working label May 4, 2023
@goccy goccy closed this as completed in #178 May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants