-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 queries that return raw data without aggregates. #1704
Conversation
bah, fixing test errors. Forgot to run the entire suite before commit. |
s.CreateDatabase("foo") | ||
s.CreateRetentionPolicy("foo", &influxdb.RetentionPolicy{Name: "raw", Duration: 1 * time.Hour}) | ||
s.SetDefaultRetentionPolicy("foo", "raw") | ||
s.CreateUser("susy", "pass", false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, we don't need to create "susy". We should remove this from the other tests too.
Don't fully grok the rationale of some of these changes, but code looks reasonable. |
15d5d95
to
450480d
Compare
if err != nil { | ||
return nil, err | ||
} | ||
stmt := e.stmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, because you're only supporting 1 field for raw queries, I presume this is why Substatement
is not being called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because for raw queries there's only a single map function. You can get 1, more, or all fields in a raw query.
Some feedback, none mandatory. +1 |
I also removed the engine test for the raw planner. It's getting tested elsewhere and it would have been too difficult to make it work. Besides, that's getting replaced soon anyway.
450480d
to
db0f5f0
Compare
Fix queries that return raw data without aggregates.
This is an ugly hack, but it'll have to do until I finish the query engine refactoring. Please to review @benbjohnson