简体   繁体   中英

Including javascript libraries into Snowflake UDFs

I'm interested in getting JS UDFs to work without pasting a bunch of code at the beginning of the function.

Anyone knows if there is any similar way to include javascript libraries in UDFs as BigQuery does?

https://cloud.google.com/bigquery/docs/reference/standard-sql/user-defined-functions#including-javascript-libraries

I would love to know if it's at least in Snowflake's roadmap or if there is another method to handle this kind of cases.

Restrictions on Stored Procedures :

Stored procedures have the following restrictions:

  • The JavaScript code cannot call the JavaScript eval() function.

  • JavaScript stored procedures support access to the standard JavaScript library. Note that this excludes many objects and methods typically provided by browsers. There is no mechanism to import, include, or call additional libraries. Allowing 3rd-party libraries could create security holes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM