Skip to content

Don't allow '__time' as a GroupBy output field name - #3967

Merged
gianm merged 2 commits into
apache:masterfrom
jon-wei:there_is_no_time
Feb 23, 2017
Merged

gianm merged 2 commits into
apache:masterfrom
jon-wei:there_is_no_time

Conversation

@jon-wei

@jon-wei jon-wei commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

Disallows __time as an output field for GroupBy queries

Fixes #3687

@jon-wei jon-wei added this to the 0.10.0 milestone Feb 23, 2017
@jon-wei
jon-wei requested a review from gianm February 23, 2017 03:22
@jon-wei jon-wei changed the title Don't allow '__time' as a GroupBy column field name Don't allow '__time' as a GroupBy output field name Feb 23, 2017
}

if (outputNames.contains(Column.TIME_COLUMN_NAME)) {
throw new IAE("'__time' cannot be used as an output name for dimensions, aggregators, or post-aggregators.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might as well do %s and Column.TIME_COLUMN_NAME here since you went to the trouble of doing it in the if check.

@b-slim

b-slim commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

👍 after nit fix for log msg

@fjy

fjy commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

👍

@gianm

gianm commented Feb 23, 2017

Copy link
Copy Markdown
Contributor

@jon-wei, please update the log msg and then feel free to merge it yourself since there's enough +1s

@gianm
gianm merged commit 58b704c into apache:master Feb 23, 2017
@jon-wei
jon-wei deleted the there_is_no_time branch October 6, 2017 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants