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(Core): Add a default argument to ArrayTrait::isAssoc #5024

Merged
merged 3 commits into from
Jan 21, 2022

Conversation

saranshdhingra
Copy link
Contributor

@saranshdhingra saranshdhingra commented Jan 13, 2022

The new argument $onEmpty is returned when the input array is empty.

ValueMapper in BigQuery should receive a false on passing an empty array to isAssoc.

Should fix #3937's error message.

Copy link
Contributor

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

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

This looks great but can we add some testing around the new behavior?

@saranshdhingra saranshdhingra added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 17, 2022
@bshaffer bshaffer merged commit c81eea7 into googleapis:master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery: Query fails when empty array is sent as parameter
3 participants