You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql> select current_version();
+-------------------+
| current_version() |
+-------------------+
| 3.2.2-269e832 |
+-------------------+
1 row in set (1.95 sec)
creating item table.
create table item ( ItemID bigint(20), Name String);
insert into item(ItemID, name) select distinct ItemID, concat("item ", ItemID) from user_behavior;
Now running JOIN. No message from BE. BE container just fails.
with tmp1 as (
with tmp as (
select
ItemID,
t.level as level,
count(UserID) as res
from
(
select
ItemID,
UserID,
window_funnel(
1800,
timestamp,
0,
[BehaviorType = 'pv',
BehaviorType ='buy' ]
) as level
from
user_behavior
where timestamp >= '2017-12-02 00:00:00'
and timestamp <= '2017-12-02 23:59:59'
group by
ItemID,
UserID
) as t
where
t.level > 0
group by
t.ItemID,
t.level
)
select
tmp.ItemID,
tmp.level,
sum(tmp.res) over (
partition by tmp.ItemID
order by
tmp.level rows between current row
and unbounded following
) as retention
from
tmp
)
select
tmp1.ItemID,
i.name,
tmp1.level,
tmp1.retention / last_value(tmp1.retention) over(
partition by tmp1.ItemID
order by
tmp1.level desc rows between current row
and 1 following
) as retention_ratio
from
tmp1
JOIN item i ON tmp1.ItemID = i.ItemID
order by
tmp1.level desc,
retention_ratio
limit
10;
The text was updated successfully, but these errors were encountered:
using https://forum.starrocks.io/t/retail-ecommerce-funnel-analysis-demo-with-1-million-members-and-87-million-record-dataset-using-starrocks/269 with https://github.com/StarRocks/demo/tree/master/documentation-samples/hudi
running
creating item table.
Now running JOIN. No message from BE. BE container just fails.
The text was updated successfully, but these errors were encountered: