create table test_window (a int, b int);
insert into test_window values(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
select count(distinct a) over(partition by b) from test_window;
create table test_window (a int, b int);
insert into test_window values(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10);
select count(distinct a) over(partition by b) from test_window;
您好,
select count(distinct a) over(partition by b) from test_window;
这种开窗去重计数starrocks支持了吗
starrocks不支持count(distinct a) over ()的话,有什么平替的方法吗
我这个是一个需求的帖子 希望官方可以支持一下这个功能 这个功能在trino上是支持的
类似的需求去 GitHub 提一下 issue 可能更容易被看到噢~ 你先在这里提一个吧,今年会在把新的需求整理出来:https://github.com/StarRocks/starrocks/issues/40894