Skip to content
Advertisement

Tag: stored-procedures

UDF JavaScript implementation into Snowflake

I found usefull JS function that I want to implement into snowflake’s UDF in order to move complex computation to the dwh. http://trentrichardson.com/2010/04/06/compute-linear-regressions-in-javascript/ Attempt to rework above as SQL procedure: Execution fails with error: SQL compilation error: Invalid identifier which is odd since procedure has been created. Answer You’re almost there. To pass an array, try using ARRAY_CONSTRUCT or PARSE_JSON,

Unexpected token “” was found following “”

Im a newbie to DB2. Im trying to convert this sp from Microsoft SQL server to DB2 Here is the sp from Microsoft SQL: and this is the sp after i converted to DB2 Then i got this error: An unexpected token “” was found following “”. Expected tokens may include: “”.. SQLCODE=-104, SQLSTATE=42601, DRIVER=4.19.56 Does anyone know how to

Advertisement