Skip to content
Advertisement

Tag: snowflake-cloud-data-platform

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,

Snowflake BIT datatype

i have BIT data type in sql server and i am trying to migrate it to snowflake but i am not able get the data into snowflake properly 0 goes as 0 but 1 goes into as 255 when i DT_UI1 data type to output the column in sql server can anybody help me how to send bit data type

COPY INTO Snowflake Table with Extra Columns

I’ve got a table defined in Snowflake as: GLPCT and a file that looks like this: GLPCT.csv example: My copy into command looks like this: Problem Snowflake is throwing an error due to a column number mismatch. How can I get Snowflake to ignore the column that isn’t present in the file and not throw an error? I can move

Assertions in Snowflake

Is there a way to perform assertions in Snowflake? Basically, I’m trying to do a bit of testing/TDD, and I’d like a mechanism similar to assertions in every other language: If the assertion succeeds, it returns true (and/or prints a success message). If the assertion fails, an exception is raised. Answer I couldn’t find any way to perform assertions in

Advertisement