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

Support submetrics #37

Merged
merged 1 commit into from Dec 3, 2017
Merged

Support submetrics #37

merged 1 commit into from Dec 3, 2017

Conversation

roidelapluie
Copy link
Contributor

Fixes #36

Signed-off-by: Julien Pivotto roidelapluie@inuits.eu

@roidelapluie
Copy link
Contributor Author

I still need to fix the way we detect if there are wultiple values per metrics so this is still WIP

@roidelapluie
Copy link
Contributor Author

Fixed, and added tests.

@roidelapluie
Copy link
Contributor Author

ping @haxorof @disq @bruth for review :)

Copy link
Contributor

@disq disq left a comment

Choose a reason for hiding this comment

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

I didn't dive in too deep, but the basic premise and implementation LGTM. 👍

config_test.go Outdated
want: []*Query{
&Query{
Name: "query_ds_1",
SQL: "select 1 as \"sum\", 2 as \"count\" from dual\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer literal strings (backticks) when using double quotes in a string.

`select 1 as "sum" ...`

set.go Outdated
}
}
// it is a facet field and not a submetric field
if submetric == false {
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer if !submetric { rather than equality to false.

@bruth
Copy link
Contributor

bruth commented Dec 1, 2017

Looks good otherwise!

Fixes chop-dbhi#36

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
@roidelapluie
Copy link
Contributor Author

@bruth I addressed your comments.

@bruth bruth merged commit e31137f into chop-dbhi:master Dec 3, 2017
@bruth
Copy link
Contributor

bruth commented Dec 3, 2017

👍 Nice work

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.

None yet

3 participants