Skip to content

Commit

Permalink
remove empty lines from python code in sqllogictest
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Feb 23, 2024
1 parent 114a03c commit 2ad3f52
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions e2e_test/udf/python_udf.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
$$;
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 2ad3f52

Please sign in to comment.