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

spanner/spannertest: fix aggregation in query evaluation for empty in… #2803

Merged
merged 1 commit into from Sep 1, 2020
Merged

spanner/spannertest: fix aggregation in query evaluation for empty in… #2803

merged 1 commit into from Sep 1, 2020

Conversation

dsymonds
Copy link
Contributor

@dsymonds dsymonds commented Sep 1, 2020

…puts

The aggregation was applying grouping to the entire table if no grouping
was found, but that should only apply if there isn't a GROUP BY clause,
not if a GROUP BY clause found no rows (e.g. for an empty table).

Fixes #2793

…puts

The aggregation was applying grouping to the entire table if no grouping
was found, but that should only apply if there isn't a GROUP BY clause,
not if a GROUP BY clause found no rows (e.g. for an empty table).

Fixes #2793
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 1, 2020
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Sep 1, 2020
@dsymonds dsymonds merged commit d9ddc50 into googleapis:master Sep 1, 2020
@dsymonds dsymonds deleted the spannertest-zero-agg branch September 1, 2020 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spannertest: ARRAY_AGG of empty results returns an empty row
2 participants