Skip to content

Commit

Permalink
add e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <stdrc@outlook.com>
  • Loading branch information
stdrc committed Aug 22, 2024
1 parent 46cab7f commit 95f2477
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions e2e_test/udf/bug_fixes/17560_udaf_as_win_func.slt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://github.com/risingwavelabs/risingwave/issues/17560

statement ok
create aggregate sum00(value int) returns int language python as $$
def create_state():
return 0
def accumulate(state, value):
return state + value
def retract(state, value):
return state - value
def finish(state):
return state
$$;

query ii
select t.value, sum00(weight) OVER (PARTITION BY value) from (values (1, 1), (null, 2), (3, 3)) as t(value, weight);
----
1 1
3 3

0 comments on commit 95f2477

Please sign in to comment.