vscode-sqltools icon indicating copy to clipboard operation
vscode-sqltools copied to clipboard

When running query in snowflake using flatten function, => is getting converted to = >

Open sfc-gh-sakumar opened this issue 4 years ago • 2 comments

Describe the bug When running query in snowflake using flatten function, => is getting converted to = > (extra space is getting added). This is leading to syntax error. Could you help in fixing this.

sfc-gh-sakumar avatar Feb 08 '21 07:02 sfc-gh-sakumar

Can you give an example query so we can write tests to fix this?

mtxr avatar Mar 23 '21 05:03 mtxr

Thanks for getting back on this. Below is the example code:

CREATE OR REPLACE MATERIALIZED VIEW TESTMV AS SELECT event_date, AS_INTEGER(value :Id) AS test_id FROM TestTable, LATERAL FLATTEN (input => v :TESTPOLICYID);

We can see formatter is converting => to = >

sfc-gh-sakumar avatar Mar 23 '21 05:03 sfc-gh-sakumar