Skip to content

Commit 01e9106

Browse files
committed
remove empty lines from python code in sqllogictest
Signed-off-by: Runji Wang <[email protected]>
1 parent 114a03c commit 01e9106

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

e2e_test/udf/python_udf.slt

+2-5
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ drop function decimal_add;
4848
statement ok
4949
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 $$
5050
import json
51-
5251
def to_string(a, b, c, d, e, f, g, h, i, j):
53-
return str(a) + str(b) + str(c) + str(d) + str(e) + str(f) + str(g) + str(h) + str(i) + json.dumps(j);
52+
return str(a) + str(b) + str(c) + str(d) + str(e) + str(f) + str(g) + str(h) + str(i) + json.dumps(j)
5453
$$;
5554

5655
query T
5756
select to_string(false, 1::smallint, 2, 3, 4.5, 6.7, 8.9, 'abc', '\x010203', '{"key": 1}');
5857
----
59-
False1234.56.78.9abc'\x01\x02\x03'{"key": 1}
58+
False1234.56.78.9abcb'\x01\x02\x03'{"key": 1}
6059

6160
statement ok
6261
drop function to_string;
@@ -106,7 +105,6 @@ class Ret:
106105
self.i = i
107106
self.j = j
108107
self.s = s
109-
110108
def return_all(a, b, c, d, e, f, g, h, i, j, s):
111109
return Ret(a, b, c, d, e, f, g, h, i, j, s)
112110
$$;
@@ -158,7 +156,6 @@ class Ret:
158156
def __init__(self, word, length):
159157
self.word = word
160158
self.length = length
161-
162159
def split(s):
163160
for word in s.split():
164161
yield Ret(word, len(word))

0 commit comments

Comments
 (0)