aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python3_small/test/cases/BytesDecodeModeStrict.sql
blob: e540dbf38ab661e2f72b892b43b675783c4466ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--sanitizer ignore memory
$script = @@
def f(string, uuid, yson):
    return (string, str(type(string)), uuid, str(type(uuid)), yson, str(type(yson)))

f._yql_bytes_decode_mode = 'strict'
@@;

$udf = Python3::f(Callable<(String?, UUid?, Yson?)->Tuple<String?, String, UUid?, String, Yson?, String>>, $script);

SELECT $udf("string", UUid('1812bc18-5838-4cde-98aa-287302697b90'), cast(@@{"abc"=1}@@ as yson));