-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bigquery: inconsistency in handling of repeated nested values and repeated values in valueMap #4950
Comments
Your example query projects empty arrays as the result, so the behavior is expected. However, you could just as easily do something like project The oddity is noted over here in https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#array_type
I think if you want to alter this behavior, it would be achievable via a custom type that implements its own Let me know if I'm misunderstanding your request. |
@shollyman I was mostly concerned with the discrepancy between They should both be nil or they should both be empty. |
@shollyman Did what I say above make sense? I can try to clarify further. |
Thanks for the clarifications; I misread some of the details of the initial report. |
@shollyman is there something actionable to do with this issue? |
Client
bigquery
Environment
N/A
Go Environment
$ go version
go version go1.17 windows/amd64
$ go env
Code
e.g.
Expected behavior
I expect the values to be nil in both cases of empty arrays.
Actual behavior
The repeated nested values are empty slices instead of nil.
Screenshots
N/A
Additional context
This can be fixed with:
The text was updated successfully, but these errors were encountered: