sql-formatter-org / sql-formatter

A whitespace formatter for different query languages
https://sql-formatter-org.github.io/sql-formatter/
MIT License
2.35k stars 403 forks source link

Snowflake Unable to format SQL: Error: Parse error: Unexpected "@test;" at line 7 column 6 #737

Open Bitros opened 6 months ago

Bitros commented 6 months ago
CREATE OR REPLACE STAGE test
  URL = 'azure://test.blob.core.windows.net/test/testfolder'
  STORAGE_INTEGRATION = DATALAKE_SI
  FILE_FORMAT = (TYPE = 'AVRO');

-- list stage
list @test;

Expected Output Prettier output

Actual Output Unable to format SQL: Error: Parse error: Unexpected "@test;" at line 7 column 6

Usage

nene commented 6 months ago

Regarding Prettier SQL VSCode, please read the FAQ.

Regarding the @test syntax:

Bitros commented 6 months ago

Hi, please see List syntax here https://docs.snowflake.com/en/sql-reference/sql/list#examples