You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ka...@apache.org on 2017/12/15 12:30:23 UTC

kylin git commit: KYLIN-3091 Add a test case for IntersectDistinct

Repository: kylin
Updated Branches:
  refs/heads/master 60431f464 -> f0e5e376d


KYLIN-3091 Add a test case for IntersectDistinct


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/f0e5e376
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/f0e5e376
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/f0e5e376

Branch: refs/heads/master
Commit: f0e5e376d6466891873514f76c7b34c73c0ea28f
Parents: 60431f4
Author: kangkaisen <ka...@meituan.com>
Authored: Fri Dec 15 16:44:45 2017 +0800
Committer: kangkaisen <ka...@meituan.com>
Committed: Fri Dec 15 20:29:04 2017 +0800

----------------------------------------------------------------------
 .../query/sql_intersect_count/query03.sql       | 23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/f0e5e376/kylin-it/src/test/resources/query/sql_intersect_count/query03.sql
----------------------------------------------------------------------
diff --git a/kylin-it/src/test/resources/query/sql_intersect_count/query03.sql b/kylin-it/src/test/resources/query/sql_intersect_count/query03.sql
new file mode 100644
index 0000000..3cd10b1
--- /dev/null
+++ b/kylin-it/src/test/resources/query/sql_intersect_count/query03.sql
@@ -0,0 +1,23 @@
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+select LEAF_CATEG_ID,
+intersect_count(TEST_COUNT_DISTINCT_BITMAP, CAL_DT, array[date'2012-01-01']) as first_day
+from test_kylin_fact
+where CAL_DT in (date'2012-01-01',date'2012-01-02',date'2012-01-03')
+group by LEAF_CATEG_ID
+