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 mapping of aggregate functions in v3->v2 query translation #26

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

daniel-chambers
Copy link
Contributor

@daniel-chambers daniel-chambers commented Apr 3, 2024

Describe your changes

This PR fixes the incorrect mapping of aggregation functions in the v3->v2 query translation logic. The code was incorrectly trying to find the aggregation function in the native query functions data structure instead of looking up the aggregate function off of the scalar type in the NDC schema.

This broken logic was the cause of some of the failing ndc-test tests.

This PR also fixes the Nix config for running ndc-test, which was lacking a dependency from the test suite container to the MongoDB container, which caused the MongoDB container to not start when the tests started.

The direnv config has been modified to actually activate the Nix flake, because that was the point of it in the first place. 😄

@daniel-chambers daniel-chambers self-assigned this Apr 3, 2024
Copy link
Contributor

@dmoverton dmoverton left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Collaborator

@hallettj hallettj left a comment

Choose a reason for hiding this comment

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

Good stuff, thanks for catching that!

@daniel-chambers daniel-chambers merged commit bb1a45f into main Apr 4, 2024
1 check passed
@daniel-chambers daniel-chambers deleted the daniel/fix-aggregate-functions branch April 4, 2024 23:08
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.

3 participants