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

Incorrect GROUP BY and WHERE results #76

Merged

Conversation

lyndonbauto
Copy link
Contributor

Summary

Incorrect GROUP BY and WHERE results

Description

The issue is due to the way the data stream in the traversal gets modified if a group by is imposed before the where.

A detailed explanation of offending queries and result examples is provided in #75

To fix the issue, I switched the order of GROUP BY and WHERE such that WHERE is imposed before GROUP BY. This makes more sense since it will cause filtering to be imposed before grouping. Filtering does not change the data stream of the query but grouping does.

Related Issue

fixes #75

Additional Reviewers

@birschick-bq
@lyndonb-bq
@xiazcy
@simonz-bq
@alexey-temnikov
@kylepbit

@lyndonbauto lyndonbauto added this to the Neptune JDBC Driver GA milestone Nov 26, 2021
@lyndonbauto lyndonbauto requested a review from a team November 26, 2021 16:59
@lyndonbauto lyndonbauto self-assigned this Nov 26, 2021
@lyndonbauto lyndonbauto marked this pull request as draft November 26, 2021 17:12
@lyndonbauto lyndonbauto marked this pull request as ready for review November 26, 2021 17:19
@lyndonbauto lyndonbauto merged commit c7e021d into develop Nov 26, 2021
@lyndonbauto lyndonbauto deleted the lyndon/AN-911-incorrect-group-by-having-where-results branch November 26, 2021 22:35
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.

[BUG] When combining WHERE and GROUP BY results are incorrect
3 participants