• Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    Java
  • Created about 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

2017年易观olap大赛

olap

易观olap大赛

易观目前使用Presto实现,通过自定义UDAF实现有序漏斗转化,请参考AggregationLDCount.java和AggregationLDSum.java实现,大赛测试用例实现如下:

1、查询2017年1月份,时间窗口为7天,事件顺序为10001、10004、10008的漏斗,结果为[3999974, 3995900, 3608934],21s SELECT ld_sum(xwho_state, 3) FROM (SELECT ld_count(xwhen, 7 * 86400000, xwhat_id, '10001,10004,10008') AS xwho_state FROM t_funnel_devicelog WHERE day >= '20170101' AND day <= '20170131' AND xwhat_id IN (10004, 10001, 10008) GROUP BY xwho ) a;

2、查询2017年1月份,时间窗口为3天,事件顺序为10004、10008、10010的漏斗,结果为[3999422,3573367,697506],11s SELECT ld_sum(xwho_state, 3) FROM (SELECT ld_count(xwhen, 3 * 86400000, xwhat_id, '10004,10008,10010') AS xwho_state FROM t_funnel_devicelog WHERE day >= '20170101' AND day <= '20170131' AND xwhat_id IN (10004, 10010, 10008) GROUP BY xwho ) a;

3、查询2017年1月份,时间窗口为3天,事件顺序为10004、10007、10009、10010,并且10004事件的brand属性为’Apple’的漏斗,结果为[3639301, 2449480, 559517, 35795],14s SELECT ld_sum(xwho_state, 4) FROM (SELECT ld_count(xwhen, 3 * 86400000, xwhat_id, '10004,10007,10009,10010') AS xwho_state FROM t_funnel_devicelog WHERE day >= '20170101' AND day <= '20170131' AND (xwhat_id IN (10007, 10009, 10010) OR xwhat_id = 10004 AND view_brand = 'Apple') GROUP BY xwho ) a;

More Repositories

1

presto-hbase-connector

presto hbase connector 组件基于Presto Connector接口规范实现,用来给Presto增加查询HBase的功能。相比其他开源版本的HBase Connector,我们的性能要快10到100倍以上。
Java
240
star
2

2018_Analysys_2nd_Algorithm_Competition

2018第二届易观算法大赛
Python
84
star
3

ans-android-sdk

Analysys Android SDK
Java
63
star
4

ans-javascript-sdk

Analysys JavaScript SDK
JavaScript
45
star
5

ans-ui

A Vue-based UI component library。一套基于Vue.js的高质量 UI 组件库,让设计者和开发者专注于更好的用户体验
Vue
43
star
6

public-docs

43
star
7

ans-ios-sdk

Analysys iOS SDK
Objective-C
33
star
8

Kong_Plus

易观KongPlus
Java
19
star
9

Backquarter

易观开源大数据互联网百亿级记录互传Backquarter项目
Java
18
star
10

easyscheduler_docs_cn

EasyScheduler中文在线文档, 本文档属于1.2.0以前的历史文档, 最新文档在:https://dolphinscheduler.apache.org
HTML
15
star
11

2019_Analysys_3nd_Algorithm_Competition

2019算法大赛-pv/uv流量预测和Session分析
Python
13
star
12

ans-java-sdk

Analysys Java SDK
Java
10
star
13

ans-allgro-plugin

Analysys Android Allgro Plugin SDK
Groovy
8
star
14

2020_Analysys_4nd_Algorithm_Competition

7
star
15

ans-wechat-sdk

Analysys WeChat SDK
TypeScript
7
star
16

ans-flutter-sdk

Analysys Flutter SDK
Java
4
star
17

ans-php-sdk

Analysys PHP SDK
PHP
3
star
18

ans-python-sdk

Analysys Python SDK
Python
3
star
19

ans-ui_docs

Docs for Ans UI
Vue
2
star
20

ans-node-sdk

Analysys Node SDK
JavaScript
2
star
21

ans-Alipay-sdk

Analysys Alipay SDK
TypeScript
1
star
22

ans-phonegap-sdk

Java
1
star
23

easyscheduler_docs

EasyScheduler online document(English)
HTML
1
star
24

ans-DotNet-sdk

Analysys DotNet SDK
C#
1
star
25

uba-docs

1
star
26

ans-Bytedance-sdk

Analysys Bytedance SDK
JavaScript
1
star