python_script_from_file.sql 241 B

1234567
  1. /* postgres can not */
  2. /* syntax version 1 */
  3. use plato;
  4. $udfScript = FileContent("python_script.py");
  5. $udf = Python::AppendNum(Callable<(String, Int32?)->String>, $udfScript);
  6. select $udf(value, cast(subkey as Int32)) as value from Input;