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

fix handling of empty/null arrays #239

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

danielmerken
Copy link

Fixes #238

@danielmerken danielmerken changed the title fix handling of empty arrays fix handling of empty/null arrays Oct 23, 2023
@isamert
Copy link

isamert commented Oct 24, 2023

Would like to see this merged, it also fixes the issue we are currently facing where having an empty array in the test data causes 'NoneType' object is not iterable. error.

isamert pushed a commit to isamert/bigquery-emulator that referenced this pull request Oct 30, 2023
isamert added a commit to isamert/bigquery-emulator that referenced this pull request Oct 30, 2023
@MatanLevy
Copy link
Contributor

@goccy can you consider merge that fix? currently is not possible to query data that have fields with empty array

@totem3 totem3 added bug Something isn't working PriorityHigh labels Dec 7, 2023
@@ -315,8 +319,8 @@ func (r *Repository) convertValueToCell(value interface{}) (*internaltypes.Table
}
// array type
var (
cells []*internaltypes.TableCell
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits: These initialization operation is not required

@goccy
Copy link
Owner

goccy commented Dec 7, 2023

LGTM 👍

( We need to add linter )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PriorityHigh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery Emulator Returns NULL for Empty Arrays
5 participants