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: remove incorrect optimization for group-by #21691

Merged
merged 5 commits into from
Jun 16, 2021

Conversation

lesam
Copy link
Contributor

@lesam lesam commented Jun 15, 2021

Closes #21639

@lesam
Copy link
Contributor Author

lesam commented Jun 15, 2021

@danxmoran is there a good place to add an end-to-end select test (would the grace tests be the right place for that?)

@danxmoran
Copy link
Contributor

@lesam I'd vote for adding a new test to either influxql/v1validation or influxql/v1tests. The v1validation suite is data-driven based on goldenfiles there, so if you can express the input/query/output in YAML then it'll probably be the least amount of code overall.

You'd be the first person adding a test since Stuart ported the suite over from IDPE so you might hit some warts, but I think the overall framework is solid.

@@ -88,6 +89,45 @@ func TestServer_Query_Chunked(t *testing.T) {
test.Run(ctx, t, s)
}

// Ensure a more complex group-by is correct
func TestServer_Query_ComplexGroupby(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test fails with the fastIdx 'optimisation'

Copy link
Contributor

@danxmoran danxmoran left a comment

Choose a reason for hiding this comment

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

Thanks!

@lesam lesam merged commit 2a4dc9e into influxdata:master Jun 16, 2021
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.

Forward-port group by fix to 2.x
2 participants