aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/udf/python_script_from_file.sql
blob: 259ec838aab4faf5b3a1f8f5184a4043c655895c (plain) (blame)
1
2
3
4
5
6
7
/* postgres can not */
/* syntax version 1 */
use plato;
$udfScript = FileContent("python_script.py");
$udf = Python::AppendNum(Callable<(String, Int32?)->String>, $udfScript);

select $udf(value, cast(subkey as Int32)) as value from Input;