diff --git a/e2e_test/udf/python_udf.slt b/e2e_test/udf/python_udf.slt index 1b92478090159..34bc25162ca7e 100644 --- a/e2e_test/udf/python_udf.slt +++ b/e2e_test/udf/python_udf.slt @@ -48,9 +48,8 @@ drop function decimal_add; statement ok create function to_string(a boolean, b smallint, c int, d bigint, e real, f float, g decimal, h varchar, i bytea, j jsonb) returns varchar language python as $$ import json - def to_string(a, b, c, d, e, f, g, h, i, j): - return str(a) + str(b) + str(c) + str(d) + str(e) + str(f) + str(g) + str(h) + str(i) + json.dumps(j); + return str(a) + str(b) + str(c) + str(d) + str(e) + str(f) + str(g) + str(h) + str(i) + json.dumps(j) $$; query T @@ -106,7 +105,6 @@ class Ret: self.i = i self.j = j self.s = s - def return_all(a, b, c, d, e, f, g, h, i, j, s): return Ret(a, b, c, d, e, f, g, h, i, j, s) $$; @@ -158,7 +156,6 @@ class Ret: def __init__(self, word, length): self.word = word self.length = length - def split(s): for word in s.split(): yield Ret(word, len(word))