python_udf_with_settings.sql 196 B

12345678910
  1. $f = Python::f(Callable<(String,y:String)->String>,@@
  2. def f(x,y):
  3. return x + y
  4. @@);
  5. $f = Udf($f, "64.0" as Cpu, "4294967296" as ExtraMem);
  6. SELECT
  7. $f('foo', '?'),
  8. $f('foo', '!' as y)