deep_udf_call.sql 243 B

1234567891011
  1. /* postgres can not */
  2. USE plato;
  3. $data = (
  4. SELECT
  5. Math::Pi() * CAST(subkey AS Double) AS rad
  6. FROM Input
  7. );
  8. --INSERT INTO Output
  9. SELECT Math::Sqrt(Math::Sin(rad) * Math::Sin(rad) + Math::Cos(rad) * Math::Cos(rad)) FROM $data