You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by xx...@apache.org on 2023/01/12 09:27:58 UTC

[kylin] 02/17: KYLIN-5389 fix duplicate CC when querying

This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit a410bd0c08f3d6f130e52f9dba581e52486998b9
Author: Dorris Zhang <ru...@kyligence.io>
AuthorDate: Mon Nov 7 15:26:18 2022 +0800

    KYLIN-5389 fix duplicate CC when querying
---
 .../src/main/java/org/apache/kylin/query/schema/OLAPTable.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/query-common/src/main/java/org/apache/kylin/query/schema/OLAPTable.java b/src/query-common/src/main/java/org/apache/kylin/query/schema/OLAPTable.java
index 9551f54bd0..7aa18f093b 100644
--- a/src/query-common/src/main/java/org/apache/kylin/query/schema/OLAPTable.java
+++ b/src/query-common/src/main/java/org/apache/kylin/query/schema/OLAPTable.java
@@ -289,7 +289,7 @@ public class OLAPTable extends AbstractQueryableTable implements TranslatableTab
             allColumns.addAll(Lists.newArrayList(ccAsColumnDesc));
         }
 
-        return allColumns;
+        return allColumns.stream().distinct().collect(Collectors.toList());
     }
 
     // since computed columns are either of different expr and different names,