You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2019/08/06 10:33:47 UTC
[GitHub] [kylin] hit-lacus commented on a change in pull request #785:
KYLIN-4117 Auto adjust data type of RelNode for intersect_count
hit-lacus commented on a change in pull request #785: KYLIN-4117 Auto adjust data type of RelNode for intersect_count
URL: https://github.com/apache/kylin/pull/785#discussion_r310993961
##########
File path: query/src/main/java/org/apache/kylin/query/relnode/OLAPProjectRel.java
##########
@@ -137,6 +158,16 @@ public void implementOLAP(OLAPImplementor implementor) {
this.afterAggregate = context.afterAggregate;
this.columnRowType = buildColumnRowType();
+ RelNode parentNode = implementor.getParentNode();
+ if (parentNode instanceof OLAPAggregateRel) {
+ OLAPAggregateRel rel = (OLAPAggregateRel) parentNode;
+ for (AggregateCall call : rel.getRewriteAggCalls()) {
+ if (call.getAggregation().getName().equalsIgnoreCase(BitmapMeasureType.FUNC_INTERSECT_COUNT_DISTINCT)) {
+ hasIntersect = true;
+ logger.trace("Find intersect in query.");
Review comment:
OK, I got it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services