Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bitros opened this issue Apr 29, 2024 · 2 comments
Labels

Comments

@Bitros
Copy link

Bitros commented Apr 29, 2024

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

  • How are you calling / using the library?
  • VS Code format
  • What SQL language(s) does this apply to?
  • Snowflake SQL
  • Which SQL Formatter version are you using?
  • Lastest Prettier SQL VSCode v1.6.0
@Bitros Bitros added the bug label Apr 29, 2024
@nene
Copy link
Collaborator

nene commented Apr 29, 2024

Regarding Prettier SQL VSCode, please read the FAQ.

Regarding the @test syntax:

  • Is this a syntax that Snowflake actually supports? Could you please point me to Snowflake documentation that describes this.
  • Or is it some sort of templating syntax? Use the paramTypes config option.

@Bitros
Copy link
Author

Bitros commented May 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants