KYLIN-1122 SQLDigest.isRawQuery logic bug fixed
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/821ef1e1 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/821ef1e1 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/821ef1e1 Branch: refs/heads/1.3.x Commit: 821ef1e1a372000a6e48597d2c72cbbfeb88015c Parents: b487f40 Author: Xiaoyu Wang <wangxia...@apache.org> Authored: Mon Mar 21 19:55:03 2016 +0800 Committer: Xiaoyu Wang <wangxia...@apache.org> Committed: Mon Mar 21 20:01:04 2016 +0800 ---------------------------------------------------------------------- .../main/java/org/apache/kylin/metadata/realization/SQLDigest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/821ef1e1/metadata/src/main/java/org/apache/kylin/metadata/realization/SQLDigest.java ---------------------------------------------------------------------- diff --git a/metadata/src/main/java/org/apache/kylin/metadata/realization/SQLDigest.java b/metadata/src/main/java/org/apache/kylin/metadata/realization/SQLDigest.java index 16e268e..8ff144f 100644 --- a/metadata/src/main/java/org/apache/kylin/metadata/realization/SQLDigest.java +++ b/metadata/src/main/java/org/apache/kylin/metadata/realization/SQLDigest.java @@ -49,7 +49,7 @@ public class SQLDigest { this.filterColumns = filterColumns; this.metricColumns = aggregatedColumns; this.aggregations = aggregateFunnc; - this.isRawQuery = this.groupbyColumns.isEmpty() && this.metricColumns.isEmpty(); + this.isRawQuery = this.groupbyColumns.isEmpty() && this.aggregations.isEmpty(); } public boolean isRawQuery() {