Skip to content

Require calculations w/ a group by clause.#121

Open
notbdu wants to merge 2 commits into
masterfrom
bdu/groupby-require-calc
Open

Require calculations w/ a group by clause.#121
notbdu wants to merge 2 commits into
masterfrom
bdu/groupby-require-calc

Conversation

@notbdu
Copy link
Copy Markdown
Collaborator

@notbdu notbdu commented Feb 11, 2019

Fixes #120 .

Comment thread query/unparsed_query.go Outdated
if q.TimeGranularity != nil {
return errTimeGranularityWithGroupBy
}
if len(q.Calculations) == 0 {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Perhaps move this to parseCalculations? Tend to keep this validation logic more manageable by only validating fields above not below.

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