Skip to content

Fix aggregateMaybeTable and friends#127

Merged
shane-circuithub merged 1 commit intomasterfrom
fix-aggregateMaybeTable
Oct 22, 2021
Merged

Fix aggregateMaybeTable and friends#127
shane-circuithub merged 1 commit intomasterfrom
fix-aggregateMaybeTable

Conversation

@shane-circuithub
Copy link
Copy Markdown
Contributor

None of these functions actually worked (they would generate invalid SQL that referenced the inner tag column where it was no longer in scope). The root of the problem was in the Nullifiable instance for the Aggregate context. The new version works, at the cost of grouping by the tag n + 1 times instead of just once (where n is the number of columns in the MaybeTable).

Copy link
Copy Markdown
Contributor

@ocharles ocharles left a comment

Choose a reason for hiding this comment

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

Maybe we should also have a test?

None of these functions actually worked (they would generate invalid SQL that referenced the inner tag column where it was no longer in scope). The root of the problem was in the Nullifiable instance for the Aggregate context. The new version works, at the cost of grouping by the tag `n + 1` times instead of just once (where `n` is the number of columns in the `MaybeTable`).
@shane-circuithub shane-circuithub enabled auto-merge (squash) October 22, 2021 13:12
@shane-circuithub shane-circuithub merged commit 0272bcc into master Oct 22, 2021
@shane-circuithub shane-circuithub deleted the fix-aggregateMaybeTable branch October 22, 2021 13:14
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.

2 participants