mirror of https://github.com/apache/druid.git
Merge pull request #1975 from gianm/query-to-strings
Better toString for groupBy, segmentMetadata queries.
This commit is contained in:
commit
0fb7e4e040
|
@ -564,13 +564,15 @@ public class GroupByQuery extends BaseQuery<Row>
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return "GroupByQuery{" +
|
return "GroupByQuery{" +
|
||||||
"limitSpec=" + limitSpec +
|
"dataSource='" + getDataSource() + '\'' +
|
||||||
|
", querySegmentSpec=" + getQuerySegmentSpec() +
|
||||||
|
", limitSpec=" + limitSpec +
|
||||||
", dimFilter=" + dimFilter +
|
", dimFilter=" + dimFilter +
|
||||||
", granularity=" + granularity +
|
", granularity=" + granularity +
|
||||||
", dimensions=" + dimensions +
|
", dimensions=" + dimensions +
|
||||||
", aggregatorSpecs=" + aggregatorSpecs +
|
", aggregatorSpecs=" + aggregatorSpecs +
|
||||||
", postAggregatorSpecs=" + postAggregatorSpecs +
|
", postAggregatorSpecs=" + postAggregatorSpecs +
|
||||||
", limitFn=" + limitFn +
|
", havingSpec=" + havingSpec +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,19 @@ public class SegmentMetadataQuery extends BaseQuery<SegmentAnalysis>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
return "SegmentMetadataQuery{" +
|
||||||
|
"dataSource='" + getDataSource() + '\'' +
|
||||||
|
", querySegmentSpec=" + getQuerySegmentSpec() +
|
||||||
|
", toInclude=" + toInclude +
|
||||||
|
", merge=" + merge +
|
||||||
|
", usingDefaultInterval=" + usingDefaultInterval +
|
||||||
|
", analysisTypes=" + analysisTypes +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o)
|
public boolean equals(Object o)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue