You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE FUNCTION TEST_AMPERSAND() RETURNS BOOLEAN LANGUAGE JAVASCRIPT AS $$
return true & false;
$$;
The text was updated successfully, but these errors were encountered:
simonepm
changed the title
' && ' in javascript procedure are converted to ' & ' breaking the logic
Double ' && ' in JavaScript FUNCTIONs are converted to single ' & ' breaking the logic
Feb 13, 2025
SnowCLI version
3.3.0
Python version
3.11
Platform
Win11
What happened
Hello, please,
we notice a bug while creating a FUNCTION via snow sql --filename function_creation_statement.sql
All the occurrences of ' && ' are applied as ' & ' instead, breaking the JavaScript logic inside the CREATE FUNCTION $$ ... $$ statements.
Thanks!
How to reproduce
Run: snow sql --filename function_creation_statement.sql
Execute: SELECT GET_DDL('FUNCTION', 'TEST_AMPERSAND');
The text was updated successfully, but these errors were encountered: