Fix groupBy regression on time extractions named __time#3684
Fix groupBy regression on time extractions named __time#3684jon-wei wants to merge 1 commit intoapache:masterfrom
Conversation
|
👍 |
| { | ||
| DimensionHandler handler = null; | ||
|
|
||
| if (dimensionName.equals(Column.TIME_COLUMN_NAME)) { |
There was a problem hiding this comment.
can we add a reminder that this logic probably needs to change with new dim typing work?
|
Hmm after thinking about this some more I wonder if it's something we really want to support. Maybe having this query fail is OK, and it should actually fail with a more descriptive error. The reason is that naming output fields
Currently I believe for nested queries it refers to the timestamp but for having specs it refers to the metric named |
|
You can see all of these issues come from the fact that groupBy results have anonymous timestamps in addition to actual named fields coming from dims and metrics and postaggregators. "Higher level" things like having specs and nested queries can access the timestamp by calling it As a separate but related issue, I think nothing is really stopping anyone from defining a dimension and metric with the same output name. We should detect and fail on that at the constructor level, since otherwise one will clobber the other. |
|
Maybe since this used to work, we can take the attitude that for 0.9.x that the behavior is that you are allowed to have a dimension or metric with name In 0.10.0 I'd like to make it so naming something |
|
Closing in favor of #3685 |
Fixes #3683