Skip to content

Commit

Permalink
add e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Oct 11, 2024
1 parent 3f45421 commit 602a6b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions e2e_test/udf/rust_udf.slt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,23 @@ select series(3);
statement ok
drop function series;


statement ok
create function sum_array(integer[]) returns integer language rust as $$
fn sum_array(xs: &[i32]) -> i32 {
xs.iter().sum()
}
$$;

query I
select sum_array(array[1, 2, 3]);
----
6

statement ok
drop function sum_array;


# XXX: this test is disabled in CI because it prints "panicked at" which makes the test fail
# statement ok
# create function panic() returns int language rust as $$
Expand Down

0 comments on commit 602a6b3

Please sign in to comment.