mirror of https://github.com/apache/druid.git
keep track of queried fields
This commit is contained in:
parent
ae682d2cbb
commit
035986b3bc
|
@ -20,6 +20,7 @@ import java.util.*;
|
||||||
public List<PostAggregator> postAggregators = new LinkedList<PostAggregator>();
|
public List<PostAggregator> postAggregators = new LinkedList<PostAggregator>();
|
||||||
public DimFilter filter;
|
public DimFilter filter;
|
||||||
public List<org.joda.time.Interval> intervals;
|
public List<org.joda.time.Interval> intervals;
|
||||||
|
public List<String> fields = new LinkedList<String>();
|
||||||
public QueryGranularity granularity = QueryGranularity.ALL;
|
public QueryGranularity granularity = QueryGranularity.ALL;
|
||||||
public Map<String, DimensionSpec> groupByDimensions = new LinkedHashMap<String, DimensionSpec>();
|
public Map<String, DimensionSpec> groupByDimensions = new LinkedHashMap<String, DimensionSpec>();
|
||||||
|
|
||||||
|
@ -116,7 +117,10 @@ query
|
||||||
|
|
||||||
select_stmt
|
select_stmt
|
||||||
: 'select' e+=aliasedExpression (',' e+=aliasedExpression)* 'from' datasource {
|
: 'select' e+=aliasedExpression (',' e+=aliasedExpression)* 'from' datasource {
|
||||||
for(AliasedExpressionContext a : $e) { postAggregators.add(a.p); }
|
for(AliasedExpressionContext a : $e) {
|
||||||
|
postAggregators.add(a.p);
|
||||||
|
fields.add(a.p.getName());
|
||||||
|
}
|
||||||
this.dataSourceName = $datasource.text;
|
this.dataSourceName = $datasource.text;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue