You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2016/11/29 06:02:52 UTC

svn commit: r1771845 - in /kylin/site: blog/2016/11/28/ blog/2016/11/28/intersect-count/ blog/2016/11/28/intersect-count/index.html blog/index.html feed.xml

Author: lidong
Date: Tue Nov 29 06:02:52 2016
New Revision: 1771845

URL: http://svn.apache.org/viewvc?rev=1771845&view=rev
Log:
add blog for intersect count

Added:
    kylin/site/blog/2016/11/28/
    kylin/site/blog/2016/11/28/intersect-count/
    kylin/site/blog/2016/11/28/intersect-count/index.html
Modified:
    kylin/site/blog/index.html
    kylin/site/feed.xml

Added: kylin/site/blog/2016/11/28/intersect-count/index.html
URL: http://svn.apache.org/viewvc/kylin/site/blog/2016/11/28/intersect-count/index.html?rev=1771845&view=auto
==============================================================================
--- kylin/site/blog/2016/11/28/intersect-count/index.html (added)
+++ kylin/site/blog/2016/11/28/intersect-count/index.html Tue Nov 29 06:02:52 2016
@@ -0,0 +1,302 @@
+<!--
+* 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.
+-->
+<!doctype html>
+<html>
+	<!--
+* 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.
+-->
+
+<head>
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+
+  <title>Apache Kylin | Retention Or Conversion Rate Analyze in Apache Kylin</title>
+  <meta name="description" content="Since v.1.6.0">
+  <meta name="author"      content="Apache Kylin">
+  <link rel="shortcut icon" href="fav.png" type="image/png">
+
+
+
+<link rel="stylesheet" href="/assets/css/animate.css">
+<!-- Bootstrap -->
+<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
+
+<!-- Fonts -->
+<!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Alice|Open+Sans:400,300,700"> -->
+
+<!-- Icons -->
+<link rel="stylesheet" href="/assets/css/font-awesome.min.css">
+
+  <!-- Custom styles -->
+  <link rel="stylesheet" href="/assets/css/styles.css">
+  <link rel="stylesheet" href="/assets/css/docs.css">
+  <link rel="stylesheet" href="/assets/css/pygments.css">
+
+  <link rel="canonical" href="http://kylin.apache.org/blog/2016/11/28/intersect-count/">
+  <link rel="alternate" type="application/rss+xml" title="Apache Kylin" href="http://kylin.apache.org/feed.xml" />
+
+<!--[if lt IE 9]> <script src="assets/js/html5shiv.js"></script> <![endif]-->
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  //oringal tracker for kylin.io
+  ga('create', 'UA-55534813-1', 'auto');
+  //new tracker for kylin.apache.org
+  ga('create', 'UA-55534813-2', 'auto', {'name':'toplevel'});
+
+  ga('send', 'pageview');
+  ga('toplevel.send', 'pageview');
+
+
+</script>
+<script type="text/javascript" src="/assets/js/jquery-1.9.1.min.js"></script>
+<script type="text/javascript" src="/assets/js/nside.js"></script> </script>
+<script type="text/javascript" src="/assets/js/nnav.js"></script> </script>
+</head>
+
+	<body>
+		<!--
+* 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.
+-->
+
+<header id="header" >
+  
+  <div id="head" class="parallax" parallax-speed="3" >
+    <div id="logo" class="text-center"> <img class="img-circle" id="circlelogo" src="/assets/images/kylin_logo.jpg"> <span class="title" >Apache Kylin™</span> <span class="tagline">Extreme OLAP Engine for Big Data</span> 
+    </div>
+  </div>
+  
+
+  <!-- Main Menu -->
+  <nav class="navbar navbar-default" role="navigation" id="nav-wrapper">
+  <div class="container-fluid" id="nav">
+    <!--
+    <img class="img-circle" width="40px" height="40px" id="circlelogo" src="/assets/images/kylin_logo.jpg">
+    -->
+    <!-- Brand and toggle get grouped for better mobile display -->
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+     
+    </div>
+
+    <!-- Collect the nav links, forms, and other content for toggling -->
+    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+      <ul class="nav navbar-nav">
+     <li><a href="/">Home</a></li>
+          <li><a href="/docs15" >Docs</a></li>
+          <li><a href="/download">Download</li>
+          <li><a href="/community" >Community</a></li>
+          <li><a href="/development" >Development</a></li>
+          <li><a href="/blog">Blog</li>
+          <li><a href="/cn" >中文版</a></li>  
+          <li><a href="https://twitter.com/apachekylin" target="_blank" class="fa fa-twitter fa-lg" title="Twitter: @ApacheKylin" ></a></li>
+          <li><a href="https://github.com/apache/kylin" target="_blank" class="fa fa-github-alt fa-lg" title="Github: apache/kylin" ></a></li>          
+          <li><a href="https://www.facebook.com/kylinio" target="_blank" class="fa fa-facebook fa-lg" title="Facebook: kylin.io" ></a></li>   
+      </ul>      
+    </div><!-- /.navbar-collapse -->
+  </div><!-- /.container-fluid -->
+</nav>
+ </header>
+
+		<div class="page-content">
+			<header style=" padding:2em 0 0 0">
+			<div class="container" >
+				<h4 class="section-title"><span>Apache Kylin™ Technical Blog</span></h4>
+			</div>
+		</div>
+
+		<div class="container">
+			<div>
+				<article class="post-content" >	
+				<!--
+* 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.
+-->
+
+<div class="post" style=" padding:2em 4em 4em 4em">
+
+  <header class="post-header">
+    <h1 class="post-title">Retention Or Conversion Rate Analyze in Apache Kylin</h1>
+    <p class="post-meta" >Nov 28, 2016 • Yerui Sun</p>
+  </header>
+
+  <article class="post-content" >
+    <p>Since v.1.6.0</p>
+
+<h2 id="background">Background</h2>
+<p>Retention or conversion rate is important in data analysis. In general, the value can be calculated based on the intersection of two data sets (uuid etc.), with some same dimensions (city, category, etc.) and one variety dimension (date etc.).<br />
+Apache Kylin has support retention calculation based on the Bitmap and UDAF intersect_count. This article introduced how to use this feature.</p>
+
+<h2 id="usage">Usage</h2>
+<p>To use retention calculation in Apache Kylin, must meet requirements as below:<br />
+* Only one dimension can be variety<br />
+* The measure to be calculated have defined precisely count distinct measure</p>
+
+<p>The intersect_count usage is described below:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>intersect_count(columnToCount, columnToFilter, filterValueList)
+`columnToCount` the columnt to cacluate and distinct count
+`columnToFilter` the variety dimension
+`filterValueList` the values of variety dimension, should be array
+</code></pre>
+</div>
+
+<p>Here’s some examples:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>intersect_count(uuid, dt, array['20161014', '20161015'])
+The precisely distinct count of uuids shows up both in 20161014 and 20161015
+
+intersect_count(uuid, dt, array['20161014', '20161015', '20161016'])
+The precisely distinct count of uuids shows up all in 20161014, 20161015 and 20161016
+
+intersect_count(uuid, dt, array['20161014'])
+The precisely distinct count of uuids shows up in 20161014, equivalent to `count(distinct uuid)`
+</code></pre>
+</div>
+
+<p>A complete sql statement example:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>select city, version,
+intersect_count(uuid, dt, array['20161014']) as first_day,
+intersect_count(uuid, dt, array['20161015']) as second_day,
+intersect_count(uuid, dt, array['20161016']) as third_day,
+intersect_count(uuid, dt, array['20161014', '20161015']) as retention_oneday,
+intersect_count(uuid, dt, array['20161014', '20161015', '20161016']) as retention_twoday
+from visit_log
+where dt in ('2016104', '20161015', '20161016')
+group by city, version
+</code></pre>
+</div>
+
+<h2 id="conclusions">Conclusions</h2>
+<p>Based on Bitmap and UDAF intersect_count, we can do fast and convenient retention analyze on Apache Kylin. Compared with the traditional way, SQL in Apache Kylin can be much more simple and clearly, and more efficient.</p>
+
+
+  </article>
+
+</div>
+
+
+
+
+
+				</article>
+			</div>
+		</div>		
+		<!--
+* 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.
+-->
+
+<footer id="underfooter">
+    <div class="container">
+        <div class="row">
+            <div class="col-md-12 widget">
+                <div class="widget-body" style="text-align:center">
+                    <a href="http://www.apache.org">
+                        <img id="asf-logo" alt="Apache Software Foundation" src="/assets/images/feather-small.gif">
+                    </a>
+
+                    <div>
+                        The contents of this website are © 2015 Apache Software Foundation under the terms of the <a
+                            href="http://www.apache.org/licenses/LICENSE-2.0"> Apache License v2 </a>. Apache Kylin and
+                        its logo are trademarks of the Apache Software Foundation.
+                    </div>
+
+                </div>
+            </div>
+        </div>
+        <!-- /row of widgets -->
+
+    </div>
+    <div></div>
+
+</footer>
+
+	<script src="/assets/js/jquery-1.9.1.min.js"></script> 
+	<script src="/assets/js/bootstrap.min.js"></script> 
+	<script src="/assets/js/main.js"></script>
+	</body>
+</html>
+
+
+
+

Modified: kylin/site/blog/index.html
URL: http://svn.apache.org/viewvc/kylin/site/blog/index.html?rev=1771845&r1=1771844&r2=1771845&view=diff
==============================================================================
--- kylin/site/blog/index.html (original)
+++ kylin/site/blog/index.html Tue Nov 29 06:02:52 2016
@@ -174,6 +174,12 @@
             
             <li>
         <h2 align="left" style="margin:0px">
+          <a class="post-link" href="/blog/2016/11/28/intersect-count/">Retention Or Conversion Rate Analyze in Apache Kylin</a></h2><div align="left" class="post-meta">posted: Nov 28, 2016</div>
+        
+      </li>
+    
+            <li>
+        <h2 align="left" style="margin:0px">
           <a class="post-link" href="/blog/2016/11/16/window-function/">Use Window Function and Grouping Sets in Apache Kylin</a></h2><div align="left" class="post-meta">posted: Nov 16, 2016</div>
         
       </li>
@@ -228,25 +234,25 @@
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/cn/blog/2016/05/26/release-v1.5.2/">Apache Kylin v1.5.2 正式发布</a></h2><div align="left" class="post-meta">posted: May 26, 2016</div>
+          <a class="post-link" href="/blog/2016/05/26/release-v1.5.2/">Apache Kylin v1.5.2 Release Announcement</a></h2><div align="left" class="post-meta">posted: May 26, 2016</div>
         
       </li>
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/blog/2016/05/26/release-v1.5.2/">Apache Kylin v1.5.2 Release Announcement</a></h2><div align="left" class="post-meta">posted: May 26, 2016</div>
+          <a class="post-link" href="/cn/blog/2016/05/26/release-v1.5.2/">Apache Kylin v1.5.2 正式发布</a></h2><div align="left" class="post-meta">posted: May 26, 2016</div>
         
       </li>
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/blog/2016/04/12/release-v1.5.1/">Apache Kylin v1.5.1 Release Announcement</a></h2><div align="left" class="post-meta">posted: Apr 12, 2016</div>
+          <a class="post-link" href="/cn/blog/2016/04/12/release-v1.5.1/">Apache Kylin v1.5.1 正式发布</a></h2><div align="left" class="post-meta">posted: Apr 12, 2016</div>
         
       </li>
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/cn/blog/2016/04/12/release-v1.5.1/">Apache Kylin v1.5.1 正式发布</a></h2><div align="left" class="post-meta">posted: Apr 12, 2016</div>
+          <a class="post-link" href="/blog/2016/04/12/release-v1.5.1/">Apache Kylin v1.5.1 Release Announcement</a></h2><div align="left" class="post-meta">posted: Apr 12, 2016</div>
         
       </li>
     
@@ -258,13 +264,13 @@
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/cn/blog/2016/03/17/release-v1.5.0/">Apache Kylin v1.5.0 正式发布</a></h2><div align="left" class="post-meta">posted: Mar 17, 2016</div>
+          <a class="post-link" href="/blog/2016/03/17/release-v1.5.0/">Apache Kylin v1.5.0 Release Announcement</a></h2><div align="left" class="post-meta">posted: Mar 17, 2016</div>
         
       </li>
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/blog/2016/03/17/release-v1.5.0/">Apache Kylin v1.5.0 Release Announcement</a></h2><div align="left" class="post-meta">posted: Mar 17, 2016</div>
+          <a class="post-link" href="/cn/blog/2016/03/17/release-v1.5.0/">Apache Kylin v1.5.0 正式发布</a></h2><div align="left" class="post-meta">posted: Mar 17, 2016</div>
         
       </li>
     
@@ -294,13 +300,13 @@
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/cn/blog/2015/12/25/support-powerbi-tableau9/">Apache Kylin增加对Tableau 9及微软Excel, Power BI的支持</a></h2><div align="left" class="post-meta">posted: Dec 25, 2015</div>
+          <a class="post-link" href="/blog/2015/12/25/support-powerbi-tableau9/">Apache Kylin supports Tableau 9 and MS Excel, Power BI now</a></h2><div align="left" class="post-meta">posted: Dec 25, 2015</div>
         
       </li>
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/blog/2015/12/25/support-powerbi-tableau9/">Apache Kylin supports Tableau 9 and MS Excel, Power BI now</a></h2><div align="left" class="post-meta">posted: Dec 25, 2015</div>
+          <a class="post-link" href="/cn/blog/2015/12/25/support-powerbi-tableau9/">Apache Kylin增加对Tableau 9及微软Excel, Power BI的支持</a></h2><div align="left" class="post-meta">posted: Dec 25, 2015</div>
         
       </li>
     
@@ -318,13 +324,13 @@
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/cn/blog/2015/10/25/release-v1.1-incubating/">Apache Kylin v1.1 (incubating) 正式发布</a></h2><div align="left" class="post-meta">posted: Oct 25, 2015</div>
+          <a class="post-link" href="/blog/2015/10/25/release-v1.1-incubating/">Apache Kylin v1.1 (incubating) Release Announcement</a></h2><div align="left" class="post-meta">posted: Oct 25, 2015</div>
         
       </li>
     
             <li>
         <h2 align="left" style="margin:0px">
-          <a class="post-link" href="/blog/2015/10/25/release-v1.1-incubating/">Apache Kylin v1.1 (incubating) Release Announcement</a></h2><div align="left" class="post-meta">posted: Oct 25, 2015</div>
+          <a class="post-link" href="/cn/blog/2015/10/25/release-v1.1-incubating/">Apache Kylin v1.1 (incubating) 正式发布</a></h2><div align="left" class="post-meta">posted: Oct 25, 2015</div>
         
       </li>
     

Modified: kylin/site/feed.xml
URL: http://svn.apache.org/viewvc/kylin/site/feed.xml?rev=1771845&r1=1771844&r2=1771845&view=diff
==============================================================================
--- kylin/site/feed.xml (original)
+++ kylin/site/feed.xml Tue Nov 29 06:02:52 2016
@@ -19,11 +19,73 @@
     <description>Apache Kylin Home</description>
     <link>http://kylin.apache.org/</link>
     <atom:link href="http://kylin.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Mon, 28 Nov 2016 03:51:05 -0800</pubDate>
-    <lastBuildDate>Mon, 28 Nov 2016 03:51:05 -0800</lastBuildDate>
+    <pubDate>Tue, 29 Nov 2016 05:59:09 -0800</pubDate>
+    <lastBuildDate>Tue, 29 Nov 2016 05:59:09 -0800</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>
+        <title>Retention Or Conversion Rate Analyze in Apache Kylin</title>
+        <description>&lt;p&gt;Since v.1.6.0&lt;/p&gt;
+
+&lt;h2 id=&quot;background&quot;&gt;Background&lt;/h2&gt;
+&lt;p&gt;Retention or conversion rate is important in data analysis. In general, the value can be calculated based on the intersection of two data sets (uuid etc.), with some same dimensions (city, category, etc.) and one variety dimension (date etc.).&lt;br /&gt;
+Apache Kylin has support retention calculation based on the Bitmap and UDAF intersect_count. This article introduced how to use this feature.&lt;/p&gt;
+
+&lt;h2 id=&quot;usage&quot;&gt;Usage&lt;/h2&gt;
+&lt;p&gt;To use retention calculation in Apache Kylin, must meet requirements as below:&lt;br /&gt;
+* Only one dimension can be variety&lt;br /&gt;
+* The measure to be calculated have defined precisely count distinct measure&lt;/p&gt;
+
+&lt;p&gt;The intersect_count usage is described below:&lt;/p&gt;
+
+&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;intersect_count(columnToCount, columnToFilter, filterValueList)
+`columnToCount` the columnt to cacluate and distinct count
+`columnToFilter` the variety dimension
+`filterValueList` the values of variety dimension, should be array
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
+
+&lt;p&gt;Here’s some examples:&lt;/p&gt;
+
+&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;intersect_count(uuid, dt, array[&#39;20161014&#39;, &#39;20161015&#39;])
+The precisely distinct count of uuids shows up both in 20161014 and 20161015
+
+intersect_count(uuid, dt, array[&#39;20161014&#39;, &#39;20161015&#39;, &#39;20161016&#39;])
+The precisely distinct count of uuids shows up all in 20161014, 20161015 and 20161016
+
+intersect_count(uuid, dt, array[&#39;20161014&#39;])
+The precisely distinct count of uuids shows up in 20161014, equivalent to `count(distinct uuid)`
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
+
+&lt;p&gt;A complete sql statement example:&lt;/p&gt;
+
+&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;select city, version,
+intersect_count(uuid, dt, array[&#39;20161014&#39;]) as first_day,
+intersect_count(uuid, dt, array[&#39;20161015&#39;]) as second_day,
+intersect_count(uuid, dt, array[&#39;20161016&#39;]) as third_day,
+intersect_count(uuid, dt, array[&#39;20161014&#39;, &#39;20161015&#39;]) as retention_oneday,
+intersect_count(uuid, dt, array[&#39;20161014&#39;, &#39;20161015&#39;, &#39;20161016&#39;]) as retention_twoday
+from visit_log
+where dt in (&#39;2016104&#39;, &#39;20161015&#39;, &#39;20161016&#39;)
+group by city, version
+&lt;/code&gt;&lt;/pre&gt;
+&lt;/div&gt;
+
+&lt;h2 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h2&gt;
+&lt;p&gt;Based on Bitmap and UDAF intersect_count, we can do fast and convenient retention analyze on Apache Kylin. Compared with the traditional way, SQL in Apache Kylin can be much more simple and clearly, and more efficient.&lt;/p&gt;
+
+</description>
+        <pubDate>Mon, 28 Nov 2016 05:30:00 -0800</pubDate>
+        <link>http://kylin.apache.org/blog/2016/11/28/intersect-count/</link>
+        <guid isPermaLink="true">http://kylin.apache.org/blog/2016/11/28/intersect-count/</guid>
+        
+        
+        <category>blog</category>
+        
+      </item>
+    
+      <item>
         <title>Use Window Function and Grouping Sets in Apache Kylin</title>
         <description>&lt;p&gt;Since v.1.5.4&lt;/p&gt;
 
@@ -805,131 +867,6 @@ Check the regionserver log, there should
         
         
         <category>blog</category>
-        
-      </item>
-    
-      <item>
-        <title>Apache Kylin v1.5.2 正式发布</title>
-        <description>&lt;p&gt;Apache Kylin社区非常高兴宣布Apache Kylin v1.5.2正式发布。&lt;/p&gt;
-
-&lt;p&gt;Apache Kylin是一个开源的分布式分析引擎,提供Hadoop之上的SQL查询接口及多维分析(OLAP)能力以支持超大规模数据,最初由eBay Inc. 开发并贡献至开源社区。&lt;/p&gt;
-
-&lt;p&gt;下载Apache Kylin v1.5.2源代码及二进制安装包,&lt;br /&gt;
-请访问&lt;a href=&quot;http://kylin.apache.org/cn/download/&quot;&gt;下载&lt;/a&gt;页面.&lt;/p&gt;
-
-&lt;p&gt;这是一个主要的版本发布带来了更稳定,健壮及更好管理的版本,Apache Kylin社区解决了75个issue,包括Bug修复,功能增强及一些新特性等。&lt;/p&gt;
-
-&lt;h2 id=&quot;section&quot;&gt;主要变化&lt;/h2&gt;
-
-&lt;p&gt;&lt;strong&gt;新功能&lt;/strong&gt;&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;Count Distinct可以工作在未实现定义的维度上 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1016&quot;&gt;KYLIN-1016&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;支持Hive视图作为Lookup表 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1077&quot;&gt;KYLIN-1077&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;使Kylin运行在MapR环境中 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1515&quot;&gt;KYLIN-1515&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;通过GUI下载诊断zip包 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1600&quot;&gt;KYLIN-1600&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;使Kylin支持cdh5.7 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1672&quot;&gt;KYLIN-1672&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;显示时间列作为分区列 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1441&quot;&gt;KYLIN-1441&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;&lt;strong&gt;改进&lt;/strong&gt;&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;增强邮件通知 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-869&quot;&gt;KYLIN-869&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;HiveColumnCardinalityJob应该使用conf/kylin_job_conf.xml中的配置 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-955&quot;&gt;KYLIN-955&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在非PK/FK上支持继承的维度 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1313&quot;&gt;KYLIN-1313&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;增强转换数据到HFile阶段的性能 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1323&quot;&gt;KYLIN-1323&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;抽取cube/hybrid/project相关元数据信息以便于诊断/调试/分享等用途 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1340&quot;&gt;KYLIN-1340&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;把RealizationCapacity从3套配置改成特定数字 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1381&quot;&gt;KYLIN-1381&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;更快更好的响应以应对v2存储引擎中的rpc超时异常 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1391&quot;&gt;KYLIN-1391&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;内存需求较大的Cube应该更智能地选择LAYER还是INMEM构建算法 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1418&quot;&gt;KYLIN-1418&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在GUI上,给分区时间列添加一个”yyyy-MM-dd HH:MM:ss”选项 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1432&quot;&gt;KYLIN-1432&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;基于特定列进行Cuboid分片 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1453&quot;&gt;KYLIN-1453&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;添加超链接介绍新的Aggregation Group &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1487&quot;&gt;KYLIN-1487&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;把查询缓存调整到查询控制器级别 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1526&quot;&gt;KYLIN-1526&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;Hfile所有者不是hbase &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1542&quot;&gt;KYLIN-1542&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;使hbase编码和block size像hbase压缩一样可配置 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1544&quot;&gt;KYLIN-1544&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;重构v2存储引擎使之对扩展更加友好 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1561&quot;&gt;KYLIN-1561&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;为in-memory构建任务添加并使用一个单独kylin_job_conf.xml &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1566&quot;&gt;KYLIN-1566&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;KYLIN-1557前端工作 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1567&quot;&gt;KYLIN-1567&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;协助利器线程在超时后自动停止 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1578&quot;&gt;KYLIN-1578&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;IT测试如BuildCubeWithEngine等的准备阶段应该在出现异常后报错退出 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1579&quot;&gt;KYLIN-1579&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在Fact distinct的MR任务中用1个字节代替8字节作为列标识符 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1580&quot;&gt;KYLIN-1580&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在Cubedesc上指定Region切分size并使model中的RealizationCapacity仅仅作为提示 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1584&quot;&gt;KYLIN-1584&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;使MAX_HBASE_FUZZY_KEYS在GTScanRangePlanner中变得可配置&lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1585&quot;&gt;KYLIN-1585&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在CubeDesigner显示Cube级别的配置覆盖 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1587&quot;&gt;KYLIN-1587&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;对于小的列族可以使用不同的block size &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1591&quot;&gt;KYLIN-1591&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在Rowkey面板添加”isShardBy”标志 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1599&quot;&gt;KYLIN-1599&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在hbase行很大的时候不需要缩小扫描缓存 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1601&quot;&gt;KYLIN-1601&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;用户应该可以到处hbase使用情况协助诊断 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1602&quot;&gt;KYLIN-1602&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;为诊断工具添加更多信息 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1614&quot;&gt;KYLIN-1614&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在协处理器中使用1级deflate压缩 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1621&quot;&gt;KYLIN-1621&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;使数据采样时hll精度可配置 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1623&quot;&gt;KYLIN-1623&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;当有十亿数据规模时HyperLogLogPlusCounter会变得不精确 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1624&quot;&gt;KYLIN-1624&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;GC日志在重启后覆盖老文件 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1625&quot;&gt;KYLIN-1625&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;添加调试接口以导出二进制cube存储情况以助于未来分析 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1627&quot;&gt;KYLIN-1627&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;&lt;strong&gt;Bug&lt;/strong&gt;&lt;/p&gt;
-
-&lt;ul&gt;
-  &lt;li&gt;时间戳字段的列宽太小 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-989&quot;&gt;KYLIN-989&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;cube数据在purge后没有更新 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1197&quot;&gt;KYLIN-1197&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;不能在配置中获取超过一个的系统管理员邮箱 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1305&quot;&gt;KYLIN-1305&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;应该检查并确保topn度量必须指定两个参数 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1551&quot;&gt;KYLIN-1551&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;HybridInstance#init()中进行非安全性的初始化 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1563&quot;&gt;KYLIN-1563&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在GUI中添加一个自定义聚合时选择一个列 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1569&quot;&gt;KYLIN-1569&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;QueryService#getMetadata()存在没有关闭的ResultSet &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1574&quot;&gt;KYLIN-1574&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在Job engine中执行MR任务时报出NPE &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1581&quot;&gt;KYLIN-1581&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;当编辑Cube时聚合组信息会变空 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1593&quot;&gt;KYLIN-1593&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;度量列可以出现在filter/groupby中 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1595&quot;&gt;KYLIN-1595&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;字符串编码不一致导致UT失败 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1596&quot;&gt;KYLIN-1596&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在windows开发机不能完整执行单元测试 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1598&quot;&gt;KYLIN-1598&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;部署协处理器时会出现hdfs并发写问题 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1604&quot;&gt;KYLIN-1604&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;Cube已经就绪但是insight中的表没有记录 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1612&quot;&gt;KYLIN-1612&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;单元测试’HiveCmdBuilderTest’在’testBeeline’失败 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1615&quot;&gt;KYLIN-1615&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;因topn度量引起的找不到realization &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1619&quot;&gt;KYLIN-1619&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;sql无法执行并报出topn错误 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1622&quot;&gt;KYLIN-1622&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;TopN界面,”group by”列不能使用一个维度列 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1631&quot;&gt;KYLIN-1631&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;SSHClient#scpFileToLocal()有未关闭的OutputStream &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1634&quot;&gt;KYLIN-1634&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;样例Cube构建出错 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1637&quot;&gt;KYLIN-1637&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;ToolUtil#getHBaseMetaStoreId()中有未关闭的HBaseAdmin &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1638&quot;&gt;KYLIN-1638&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;MapReduceExecutable.java中使用了错误的日志记录 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1639&quot;&gt;KYLIN-1639&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;Kylin的hll计数器把null当做一个有效值 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1643&quot;&gt;KYLIN-1643&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;Purge一个cube并再次构建,起始日期没有被更新 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1647&quot;&gt;KYLIN-1647&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;java.io.IOException: Filesystem closed - 在Cube构建第二步(MapR) &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1650&quot;&gt;KYLIN-1650&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;函数名’getKylinPropertiesAsInputSteam’拼写错误 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1655&quot;&gt;KYLIN-1655&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;Streaming/kafka配置和表名不匹配 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1660&quot;&gt;KYLIN-1660&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;表名在和/tables/tableName做请求映射时被截断 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1662&quot;&gt;KYLIN-1662&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;在添加steam表时应该检查project选择 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1666&quot;&gt;KYLIN-1666&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;Streaming表名应该遵从”DB.TABLE”格式 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1667&quot;&gt;KYLIN-1667&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;确保1.5.2和1.5.1的元数据兼容 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1673&quot;&gt;KYLIN-1673&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;元数据清理工具只清理了FINISHED和DISCARD的任务,但是一个任务的正确状态是SUCCEED &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1678&quot;&gt;KYLIN-1678&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;当使用Statement时sql中包含问号会报错 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1685&quot;&gt;KYLIN-1685&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;结果显示表格中有非法字符 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1688&quot;&gt;KYLIN-1688&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;KylinConfigExt在存储到文件时丢失基本信息 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1721&quot;&gt;KYLIN-1721&lt;/a&gt;&lt;/li&gt;
-  &lt;li&gt;IntegerDimEnc在协处理器中有序列化异常 &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN-1722&quot;&gt;KYLIN-1722&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;&lt;strong&gt;升级&lt;/strong&gt;&lt;/p&gt;
-
-&lt;p&gt;该版本的数据与元数据与v1.5.1完全兼容,但也许需要&lt;a href=&quot;/docs15/howto/howto_update_coprocessor.html&quot;&gt;更新HBase协处理器&lt;/a&gt;.&lt;/p&gt;
-
-&lt;p&gt;&lt;strong&gt;支持&lt;/strong&gt;&lt;/p&gt;
-
-&lt;p&gt;升级和使用过程中有任何问题,请:&lt;br /&gt;
-提交至Kylin的JIRA: &lt;a href=&quot;https://issues.apache.org/jira/browse/KYLIN/&quot;&gt;https://issues.apache.org/jira/browse/KYLIN/&lt;/a&gt;&lt;br /&gt;
-或者&lt;br /&gt;
-发送邮件到Apache Kylin邮件列表: &lt;a href=&quot;&amp;#109;&amp;#097;&amp;#105;&amp;#108;&amp;#116;&amp;#111;:&amp;#100;&amp;#101;&amp;#118;&amp;#064;&amp;#107;&amp;#121;&amp;#108;&amp;#105;&amp;#110;&amp;#046;&amp;#097;&amp;#112;&amp;#097;&amp;#099;&amp;#104;&amp;#101;&amp;#046;&amp;#111;&amp;#114;&amp;#103;&quot;&gt;&amp;#100;&amp;#101;&amp;#118;&amp;#064;&amp;#107;&amp;#121;&amp;#108;&amp;#105;&amp;#110;&amp;#046;&amp;#097;&amp;#112;&amp;#097;&amp;#099;&amp;#104;&amp;#101;&amp;#046;&amp;#111;&amp;#114;&amp;#103;&lt;/a&gt;&lt;/p&gt;
-
-&lt;p&gt;&lt;em&gt;感谢每一位朋友的参与和贡献!&lt;/em&gt;&lt;/p&gt;
-</description>
-        <pubDate>Thu, 26 May 2016 08:00:00 -0700</pubDate>
-        <link>http://kylin.apache.org/cn/blog/2016/05/26/release-v1.5.2/</link>
-        <guid isPermaLink="true">http://kylin.apache.org/cn/blog/2016/05/26/release-v1.5.2/</guid>
-        
-        
-        <category>blog</category>
         
       </item>