blob: 100086c9e4ee872df921e405a9399443627d3ca5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--sanitizer ignore memory
/* syntax version 1 */
$script = @@
import sys
import traceback
def excepthook(*args):
print('CUSTOM_EXCEPTHOOK', file=sys.stderr)
print(all(_ for _ in args), file=sys.stderr)
print("".join(traceback.format_exception(*args)), file=sys.stderr)
sys.excepthook = excepthook
def f(string):
raise Exception()
@@;
$udf = Python3::f(Callable<(String)->String>, $script);
SELECT $udf(@@{"abc":1}@@);
|